command.CommandChain.new
Rust
- Python Unavailable
- TypeScript Unavailable
- Rust
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- command
- Declared in
- CommandChain
- Package
- libtmux
- Source
- crates/libtmux/src/command.rs
-
Start a chain from its first command.
Taking the first command here keeps a chain non-empty by construction: an empty argv would make tmux act as a client rather than run anything.
Examples
use libtmux::{Command, CommandChain};let chain = CommandChain::new(Command::new("list-sessions"));assert_eq!(chain.command_count(), 1);
0 declared, 0 inherited