IfShellRequest
IfShellRequest configures conditional execution of a tmux command. Its zero value is invalid because ShellCommand and ThenCommand are required; nil ElseCommand omits the failure branch while a pointer to an empty string is explicit.
Source and package
- Qualified name
-
tmux.If Shell Request - Package
- tmux
- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/server_exec.go
Fields5#
| Name | Type | Description |
|---|---|---|
| Background | bool | Background makes tmux schedule the conditional command without waiting. |
| ElseCommand | *string | ElseCommand is the optional tmux command executed when ShellCommand fails. |
| ShellCommand | string | ShellCommand is the required shell condition executed by tmux. |
| TargetPane | Pane | TargetPane selects a stable pane target; its zero value omits -t. |
| ThenCommand | string | ThenCommand is the required tmux command executed when ShellCommand succeeds. |