CommandChain.command_count
Return the number of commands in the chain, always at least one.
Source and package
- Qualified name
-
libtmux::command:: Command Chain:: command _count - Module
- command
- Declared in
CommandChain- Package
- libtmux
- Source
- crates/libtmux/src/command.rs
-
Examples#
use libtmux::{Command, CommandChain};let chain = CommandChain::new(Command::new("list-panes"));assert_eq!(chain.command_count(), 1);