Workspace ManagerCLI Manual

Choose documentation 3

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Edit this page on GitHub

plan

libtmux-workspace 0.1.0.alpha.1 · Source

plan lists the ordered creation operations without applying them. By default it reads only the configuration. It does not contact tmux or execute the workspace’s shell commands.

Inspect an offline plan

Save the complete example configuration as workspace.yaml, then inspect its plan:

Terminal window
$ libtmux-workspace plan \
--json \
workspace.yaml

The JSON result includes configured command text and paths. Treat it as application data, not a redacted diagnostic. Without --json, the output lists the mode, step count, and each step’s operation, target, and effect.

Inspect a live server

--live acquires a snapshot from an existing server before planning. It requires --socket PATH; passing a socket without --live is invalid. Use the private server prepared in the load walkthrough:

Terminal window
$ libtmux-workspace plan \
--live \
--socket "$WORKSPACE_TMP/tmux.sock" \
--json \
workspace.yaml

Run this before loading the workspace. The manager creates new sessions; it does not reconcile an existing session with the file. A live snapshot describes the server when captured, so inspect the later load result rather than assuming the server stayed unchanged.

Options and failures

--timeout SECONDS bounds the live snapshot operation. It defaults to 5 and must be finite and positive. The common options control file discovery, JSON output, and explicit environment expansion. --attach, --switch, and --compensate are invalid for planning.

Invalid arguments or configuration return status 2. An unavailable live server returns an execution error. See exit statuses before using a plan in automation.

CLI parser and implementation.

Esc

Type to search.