Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

command.CommandChain.then

Rust
  • Python Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

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.