pub struct GhSpec { /* private fields */ }Expand description
Subcommand-aware gh CLI evaluator.
Evaluation order:
- Read-only subcommands → ALLOW (with redirection escalation)
- Env-gated subcommands → ALLOW if all
config_enventries match, else ASK - Known mutating subcommands → ASK
- Everything else → ASK
Implementations§
Trait Implementations§
Source§impl CommandSpec for GhSpec
impl CommandSpec for GhSpec
Source§fn evaluate(&self, ctx: &CommandContext<'_>) -> RuleMatch
fn evaluate(&self, ctx: &CommandContext<'_>) -> RuleMatch
Evaluate the command in the given context and return a decision.
Auto Trait Implementations§
impl Freeze for GhSpec
impl RefUnwindSafe for GhSpec
impl Send for GhSpec
impl Sync for GhSpec
impl Unpin for GhSpec
impl UnsafeUnpin for GhSpec
impl UnwindSafe for GhSpec
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
Mutably borrows from an owned value. Read more