pub struct HookStopArgs {
pub config: PathBuf,
pub cwd: Option<PathBuf>,
pub transcript_path: Option<PathBuf>,
pub hook_input: Option<String>,
pub home: Option<PathBuf>,
}Expand description
Stop hook input. Supports three ways to locate the session transcript (in priority order):
--transcript-path— explicit absolute path--hook-input— raw JSON from Claude Code’s stdin payload containing{"transcript_path": "..."}- fallback: scan
~/.claude/projects/<sanitized-cwd>/and pick the most recently modified.jsonl
Fields§
§config: PathBuf§cwd: Option<PathBuf>§transcript_path: Option<PathBuf>§hook_input: Option<String>Raw stdin payload Claude Code sends to Stop hook. Hook script
passes this in via --hook-input "$(cat)".
home: Option<PathBuf>Test/admin override for $HOME (used by smoke tests + dry
runs). Production callers leave this empty and we read the
real $HOME.
Trait Implementations§
Source§impl Args for HookStopArgs
impl Args for HookStopArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for HookStopArgs
impl Clone for HookStopArgs
Source§fn clone(&self) -> HookStopArgs
fn clone(&self) -> HookStopArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HookStopArgs
impl Debug for HookStopArgs
Source§impl FromArgMatches for HookStopArgs
impl FromArgMatches for HookStopArgs
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>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for HookStopArgs
impl RefUnwindSafe for HookStopArgs
impl Send for HookStopArgs
impl Sync for HookStopArgs
impl Unpin for HookStopArgs
impl UnsafeUnpin for HookStopArgs
impl UnwindSafe for HookStopArgs
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