On this page
command.CommandChain.then
- Module
- command
- Declared in
- CommandChain
- Package
- libtmux
- Source
- crates/libtmux/src/command.rs
-
Append one command, to run after the previous one succeeds.
Examples
use libtmux::{Command, CommandChain}; let chain = CommandChain::new(Command::new("select-pane").arg("-m")) .then(Command::new("select-pane").arg("-M")); assert_eq!(chain.command_count(), 2);
0 declared, 0 inherited