libtmux Reference MCP Search
On this page

workspace.Command

View as Markdown

Module
workspace
Package
github.com/libtmux/libtmux-go/tmux
Source
workspace/command.go
struct workspace.Command
struct [source]
struct [source]
struct workspace.Command

Command is one command to run in a pane. YAML accepts either a bare string or a mapping, so "echo hi" and {cmd: echo hi, sleep_before: 2} are both commands.

5 declared, 0 inherited

Members

  • Command attribute Command is the text typed into the pane.
  • Enter attribute Enter reports whether to press Enter after the command. Nil presses it, matching tmuxp, where omitting enter runs the command.
  • SleepAfter attribute SleepAfter delays the commands that follow this one, in the same units.
  • SleepBefore attribute SleepBefore delays this command. YAML expresses the duration in seconds, so 0.5 is half a second.
  • UnmarshalYAML method UnmarshalYAML decodes a command written as a bare string or as a mapping.
Esc

Type to search.