libtmux Reference MCP Search
On this page

command.CommandChain.then

View as Markdown

Module
command
Declared in
CommandChain
Package
libtmux
Source
crates/libtmux/src/command.rs
then ( mut , command : Command ) Self
method [source]
method [source]
then

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

Esc

Type to search.