Skip to main content

mask_sensitive_command

Function mask_sensitive_command 

Source
pub fn mask_sensitive_command(cmd: &str) -> String
Expand description

Mask sensitive patterns in a command string before logging.

This prevents accidental exposure of API keys, passwords, and tokens that may be present in environment variables or command arguments.