tmux.Server.Cmd
- Module
- tmux
- Declared in
- Server
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/server.go
- Other languages
- PythonRubyLuaTypeScriptRustJava .NET C++ Swift
- Cmd ( ctx : context.Context , args : string ) (CommandResult, error)
-
Cmd executes raw tmux arguments and returns caller-owned result slices. A completed nonzero exit remains a result; validation and transport failures return errors. Cancellation cannot prove whether a mutation reached tmux.
An argument that is exactly ";" separates two tmux commands, so one call can submit a command list. tmux runs a list until a command fails and drops the rest, and answers with one merged stdout, so a caller that needs to know which command produced which line submits them separately. A list means the same thing through either execution binding.
Only a standalone ";" separates commands. Other semicolons follow the selected binding's parsing; typed operations keep values literal across bindings.
In other ports Run a tmux command this port does not model
- Python
libtmux.Server.cmd - Ruby
LibTmux::Server#run - Lua
libtmux.Server:command - TypeScript
server.Server.cmd - Rust
server.Server.cmd - Java
io.github.libtmux.Server.Server.cmd - .NET no equivalent on
Server - C++ no equivalent on
Server - Swift no equivalent on
Server
- Python
0 declared, 0 inherited