Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

struct libtmux-go latest

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.IfShellRequest
Package
tmux
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/server_exec.go
struct tmux.IfShellRequest

Fields5#

IfShellRequest fields
NameTypeDescription
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 PaneID TargetPane selects a stable pane target; its zero value omits -t.
ThenCommand string ThenCommand is the required tmux command executed when ShellCommand succeeds.
Esc

Type to search.

Reference previewOpen reference