workspace.Command
Go
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
-
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.
Discussed in Go workspace builder API
Members
-
Command is the text typed into the pane.
- SleepBefore : time.Duration
-
SleepBefore delays this command. YAML expresses the duration in seconds, so 0.5 is half a second.
- SleepAfter : time.Duration
-
SleepAfter delays the commands that follow this one, in the same units.
-
Enter reports whether to press Enter after the command. Nil presses it, matching tmuxp, where omitting enter runs the command.
-
UnmarshalYAML decodes a command written as a bare string or as a mapping.