cmux/CLI
Lawrence Chen 010403fee2
CLI: add --command flag to new-workspace (#121)
* CLI: add --command flag to new-workspace

Allows running an initial command in the new workspace's terminal:
  cmux new-workspace --command "cd /path && claude"

After creating the workspace, waits 500ms for the shell to initialize,
then sends the command text via surface.send_text.

Closes #120

* CLI: error on unknown flags for new-workspace

Typos like `--comand` were silently ignored. Now reports the
unknown flag and lists known flags.

* CLI: skip --command send when workspace creation fails

If new_workspace returns an error instead of "OK <uuid>",
don't attempt to send the command (which would hit the wrong workspace).
2026-02-19 22:13:33 -08:00
..
cmux.swift CLI: add --command flag to new-workspace (#121) 2026-02-19 22:13:33 -08:00