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

command.CommandChain.command_count

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
command_count ( self ) → usize
method [source]
method [source]
command_count

Return the number of commands in the chain, always at least one.

Examples

use libtmux::{Command, CommandChain};
let chain = CommandChain::new(Command::new("list-panes"));
assert_eq!(chain.command_count(), 1);

0 declared, 0 inherited

Esc

Type to search.