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

command.Command.sensitive_arg

Rust
  • Python Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
command
Declared in
Command
Package
libtmux
Source
crates/libtmux/src/command.rs
sensitive_arg ( mut , argument : impl Into<OsString> ) → Self
method [source]
method [source]
sensitive_arg

Append one sensitive logical argument.

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"));

0 declared, 0 inherited

Esc

Type to search.