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

command.CommandChain.summary

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

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

Esc

Type to search.