libtmux Reference MCP Search
On this page

tmux.Server.IfShell

View as Markdown

Module
tmux
Declared in
Server
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/server_exec.go
IfShell ( ctx : context.Context , request : IfShellRequest ) error
method [source]
method [source]
IfShell

IfShell executes ThenCommand when ShellCommand succeeds and ElseCommand, if present, when it fails. A completed stderr result is an error; cancellation can interrupt delivery without proving that tmux did not execute a branch.

0 declared, 0 inherited

Esc

Type to search.