pub enum ConfigAction {
Show,
SetBackupVault {
target: String,
},
SetAutoQuickUnlock {
mode: ToggleSetting,
},
SetQuickUnlockRetryCooldown {
seconds: u64,
},
SetExecMode {
mode: ExecModeSetting,
},
SetExecRedactOutput {
mode: ToggleSetting,
},
SetExecCustomInherit {
mode: ExecCustomInheritSetting,
},
SetExecCustomDenyDangerousEnv {
mode: ToggleSetting,
},
AddExecExtraStrip {
name: String,
},
RemoveExecExtraStrip {
name: String,
},
}Expand description
Global config.json settings (not tied to --profile).
Variants§
Show
Show config file path, default profile, exec trust settings, and password-backup settings.
SetBackupVault
After each new password vault is created, copy its master password into this vault at profile-passwords/<new-profile> (recovery / main-vault bridging). Common values: main, default. Use off to disable.
SetAutoQuickUnlock
Persist whether normal vault opens should automatically try OS quick unlock.
Fields
mode: ToggleSettingon to allow automatic keychain reads, off to require agent / env / typed password instead.
SetQuickUnlockRetryCooldown
Persist the retry cooldown, in seconds, after an automatic quick-unlock failure.
Fields
SetExecMode
Persist the default exec trust mode.
Fields
mode: ExecModeSettingOne of: standard, hardened, custom.
SetExecRedactOutput
Persist whether tsafe exec should redact child stdout/stderr by default.
Fields
mode: ToggleSettingon to redact child output by default, off to leave it raw unless --redact-output is passed.
SetExecCustomInherit
Persist the inherit strategy used when exec mode is custom.
Fields
mode: ExecCustomInheritSettingOne of: full, minimal, clean.
SetExecCustomDenyDangerousEnv
Persist whether dangerous injected env names should abort exec when mode is custom.
Fields
mode: ToggleSettingon to abort, off to warn only.
AddExecExtraStrip
Add a parent environment variable name to the extra strip list for tsafe exec.
RemoveExecExtraStrip
Remove a parent environment variable name from the extra strip list for tsafe exec.
Trait Implementations§
Source§impl FromArgMatches for ConfigAction
impl FromArgMatches for ConfigAction
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for ConfigAction
impl Subcommand for ConfigAction
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand