CommandChain.then
Append one command, to run after the previous one succeeds.
Source and package
- Qualified name
-
libtmux::command:: Command Chain:: then - Module
- command
- Declared in
CommandChain- Package
- libtmux
- Source
- crates/libtmux/src/command.rs
-
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);