pub enum StagingAction {
Status(ScopeArgs),
Diff(ScopeArgs),
Discard(ScopeArgs),
Commit(ScopeArgs),
Sign(ScopeArgs),
Add(PatternMutationArgs),
Remove(PatternMutationArgs),
Content(ContentMutationArgs),
Time(TimeMutationArgs),
}Expand description
Staging-workflow subcommands common to every permissions-bearing
service. Each service embeds this under its permissions subgroup.
Variants§
Status(ScopeArgs)
Print whether a pending policy exists at each scope.
Diff(ScopeArgs)
Show the unified diff between live and pending (if any).
Discard(ScopeArgs)
Discard the pending policy without touching the live file.
Commit(ScopeArgs)
Promote the pending policy to live and upsert a trust-store entry signed with the keychain-held signing key.
Sign(ScopeArgs)
Sign the live file with the keychain-held signing key and
upsert its entry in the per-machine trust store. Use this to
trust a hand-edited file or a permissions file shipped from
another machine. Requires zad signing init to have run.
Add(PatternMutationArgs)
Queue an allow/deny pattern change. Writes to the pending file.
Remove(PatternMutationArgs)
Queue an allow/deny pattern removal.
Content(ContentMutationArgs)
Queue a content deny_words / deny_patterns / max_length
change.
Time(TimeMutationArgs)
Queue a time-window change.
Trait Implementations§
Source§impl Debug for StagingAction
impl Debug for StagingAction
Source§impl FromArgMatches for StagingAction
impl FromArgMatches for StagingAction
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 StagingAction
impl Subcommand for StagingAction
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