Skip to main content

string

Function string 

Source
pub fn string(input: &str, env: &[(String, String)]) -> String
Expand description

Redact secret values in a string, replacing them with $KEY_NAME.

Longer values are replaced first to prevent partial matches.

Mirrors GoReleaser’s redact.String(s, env) API.