pub struct GrokTarget;Trait Implementations§
Source§impl Target for GrokTarget
impl Target for GrokTarget
Source§fn install(&self, home: &Path) -> Result<InstallOutcome, String>
fn install(&self, home: &Path) -> Result<InstallOutcome, String>
Grok discovers hooks from every ~/.grok/hooks/*.json (globally trusted, no folder-trust
needed), so we own a DEDICATED safe-chains.json rather than editing a shared file — no risk
of clobbering the user’s other hook files, and idempotency is trivial.
fn name(&self) -> &'static str
fn display_name(&self) -> &'static str
fn detect_paths(&self, home: &Path) -> Vec<PathBuf>
fn hook_format(&self) -> Option<&dyn HookFormat>
Source§fn shell_tool_name(&self) -> &'static str
fn shell_tool_name(&self) -> &'static str
The harness’s SHELL tool — the only tool this hook should decide about. Droid’s is
Execute, Gemini’s run_shell_command; most are Bash. Defaults to Bash, the common
case.Auto Trait Implementations§
impl Freeze for GrokTarget
impl RefUnwindSafe for GrokTarget
impl Send for GrokTarget
impl Sync for GrokTarget
impl Unpin for GrokTarget
impl UnsafeUnpin for GrokTarget
impl UnwindSafe for GrokTarget
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