mirror of
https://github.com/wavetermdev/waveterm
synced 2026-05-24 09:18:27 +00:00
### What This Does Adds a new `wsh blocks list` subcommand that lists all blocks in all or specified workspace, window, or tab. Includes filtering options and JSON output for automation. ### Motivation Wave users had no simple way to programmatically discover block IDs for scripting and automation. This feature: - Enables workflows like syncing Preview widgets with `cd` changes. - Simplifies debugging and introspection. - Provides a foundation for future CLI enhancements (focus/close blocks). ### Usage ```wsh blocks [list|ls|get] [--workspace=<workspace-id>] [--window=<window-id>] [--tab=<tab-id>] [--view=<view-type>] [--json]``` Where `<view-type>` can be one of: term, terminal, shell, console, web, browser, url, preview, edit, sysinfo, sys, system, waveai, ai, or assistant. ### Notes - Fully backward compatible. - Code follows existing CLI patterns. |
||
|---|---|---|
| .. | ||
| generatego | ||
| generateschema | ||
| generatets | ||
| packfiles | ||
| server | ||
| test | ||
| testai | ||
| testopenai | ||
| wsh | ||