Skip to main content

command_without_env_prefixes

Function command_without_env_prefixes 

Source
pub fn command_without_env_prefixes(
    command: Command,
    prefixes: &[&str],
) -> Command
Expand description

Removes inherited environment names matching any supplied prefix from a command.

Names are trimmed before ASCII-case-insensitive prefix matching. Other environment variables and command settings are retained.