command.CommandChain.summary
Rust
- Python Unavailable
- TypeScript Unavailable
- Rust
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- command
- Declared in
- CommandChain
- Package
- libtmux
- Source
- crates/libtmux/src/command.rs
- summary ( self ) CommandSummary
-
Build a bounded, sanitized summary of the whole chain.
Separators render bare and are counted as neither public nor sensitive arguments. Every other token of every member, including the subcommands after the first, counts as an argument of the summary.
Examples
use libtmux::{Command, CommandChain};let summary = CommandChain::new(Command::new("select-pane").arg("-m")).then(Command::new("select-pane").arg("-M")).summary();assert_eq!(summary.to_string(), r#""select-pane" "-m" ; "select-pane" "-M""#);assert_eq!(summary.public_argument_count(), 3);
0 declared, 0 inherited