Command.sensitive_arg
Append one sensitive logical argument.
Source and package
- Qualified name
-
libtmux::command:: Command:: sensitive _arg - Module
- command
- Declared in
Command- Package
- libtmux
- Source
- crates/libtmux/src/command.rs
-
Description#
The value is dispatched exactly but diagnostics use one length-independent redaction marker.
Examples#
use libtmux::Command;let command = Command::new("set-environment").arg("TOKEN").sensitive_arg("secret");assert_eq!(command.summary().sensitive_argument_count(), 1);assert!(!command.summary().to_string().contains("secret"));