Server.IfShellAsync
Runs one tmux command or another depending on a shell command.
Source and package
- Qualified name
-
LibTmux .Server. If Shell Async - Namespace
- LibTmux
- Declared in
Server- Package
- LibTmux
- Source
- src/LibTmux/Server.Execution.cs
- Task IfShellAsync( If
Shell request, CancellationRequest Token cancellationToken = default ) -
- Parameters
-
-
request(IfShell ) – What to test, and what to run either way.Request -
cancellationToken(CancellationToken ) – Cancels the tmux command.Default
default
-
Recorded calls
source callsThe C# reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Server.IfShellAsync.
tmux command
task materialThe tmux commands behind IfShellAsync.
tmux C API
task materialThe C declarations in tmux that implement these commands.
In other ports
task equivalence 5 other ports mappedSource-verified mappings for Run one tmux command or another, on a shell test. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.
| Port | API | Differs from C# |
|---|---|---|
| C# | Lib Runs one tmux command or another depending on a shell command. | This page |
| Python | libtmux Execute a tmux command conditionally via $ tmux if-shell. | None recorded in the model |
| TypeScript | server Run one command or another depending on a condition. | None recorded in the model |
| Go | tmux 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. | None recorded in the model |
| Java | io Runs one tmux command when a shell command succeeds. | on Shell2 overloads |
| Raku | Lib Execute one of two bounded commands after a shell test, or an explicit FORMAT condition. | Branches use bounded Invocation values; the condition explicitly selects shell or FORMAT semantics. |
No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
no equivalent on Server
no equivalent on Server
no equivalent on Server
No direct public OCaml equivalent is recorded for this operation.
No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands.
No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.