method libtmux-java latest
Shell.choose
Runs one tmux command when a shell command succeeds.
Source and package
- Module
- io.github.libtmux
- Declared in
- Shell
- Package
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/Shell.java
- Other languages
- Python Ruby Lua TypeScript Rust GoC# C++ Swift Kotlin Scala F#
-
- Parameters
-
-
condition ( String ) – a shell command, judged by its exit status (for
choose(condition, whenTrue)) -
whenTrue ( String ) – the tmux command to run when the condition succeeds (for
choose(condition, whenTrue)) -
whenFalse ( String ) – the tmux command to run when the condition does not succeed (for
choose(condition, whenTrue, whenFalse))
-
tmux command
if-shellIn other ports Run one tmux command or another, on a shell test
- Python
libtmux.Server.if_shell - Ruby No source-verified Ruby equivalent is recorded for this operation.
- Lua No source-verified Lua equivalent is recorded for this operation.
- TypeScript
server.Server.ifShell - Rust no equivalent on
Server - Go
tmux.Server.IfShell - C#
LibTmux.Server.IfShellAsync - C++ no equivalent on
Server - Swift no equivalent on
Server - Kotlin No source-verified Kotlin equivalent is recorded for this operation.
- Scala No source-verified Scala equivalent is recorded for this operation.
- F# No source-verified F# equivalent is recorded for this operation.