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

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
#[must_use = "use the returned command to retain the appended sensitive argument"] pub fn sensitive_arg( mut self, argument: impl Into<OsString> ) -> Self

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

Type to search.

Reference previewOpen reference