Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-rs latest

CommandSummary.sensitive_argument_count

Return the number of sensitive logical arguments.

Source and package
Qualified name
libtmux::command::CommandSummary::sensitive_argument_count
Module
command
Declared in
CommandSummary
Package
libtmux
Source
crates/libtmux/src/command.rs
#[must_use] pub const fn sensitive_argument_count(&self) -> usize

Examples#

use libtmux::Command;
let summary = Command::new("set-environment").sensitive_arg("secret").summary();
assert_eq!(summary.sensitive_argument_count(), 1);
Esc

Type to search.

Reference previewOpen reference