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 subcommandAuto Trait Implementations§
impl Freeze for ConfigAction
impl RefUnwindSafe for ConfigAction
impl Send for ConfigAction
impl Sync for ConfigAction
impl Unpin for ConfigAction
impl UnsafeUnpin for ConfigAction
impl UnwindSafe for ConfigAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more