pub enum Tool {
Bash,
Grep,
Glob,
Read,
All,
}Expand description
A harness tool the steering hook can be installed to gate. Each becomes
its own PreToolUse matcher entry; Bash is the default.
Variants§
Bash
Shell commands — classified by the full shell-idiom matcher.
Grep
The harness content search → ct search.
Glob
The harness file glob → ct search.
Read
The harness file read → ct view (images/PDF/notebooks pass through).
All
Every tool (a * matcher) — full-coverage logging; the hook still only
steers the recognised idioms and passes everything else through.
Implementations§
Trait Implementations§
impl Copy for Tool
impl Eq for Tool
impl StructuralPartialEq for Tool
Auto Trait Implementations§
impl Freeze for Tool
impl RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnsafeUnpin for Tool
impl UnwindSafe for Tool
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