pub struct ClaudeWrapCommand {
pub socket: Option<PathBuf>,
pub argv: Vec<String>,
}Expand description
Runs a command transparently, reporting the Claude session state it streams.
Fields§
§socket: Option<PathBuf>Path to the daemon control socket. Defaults to the standard per-user path.
argv: Vec<String>The command to run and its arguments, after a -- separator.
Implementations§
Source§impl ClaudeWrapCommand
impl ClaudeWrapCommand
Sourcepub async fn execute(self) -> Result<()>
pub async fn execute(self) -> Result<()>
Executes the wrapper: runs the given command, forwards its stdio verbatim, and exits with the child’s own status.
This never returns normally on the wrapped path — it calls
std::process::exit so the child’s exit code survives, which the
framework’s Result-to-0/1 collapse in main could not express. The
consequence is that a claude-wrap invocation writes no request-log
record, which is deliberate: it is a process shim, not a user command.
Trait Implementations§
Source§impl Args for ClaudeWrapCommand
impl Args for ClaudeWrapCommand
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 CommandFactory for ClaudeWrapCommand
impl CommandFactory for ClaudeWrapCommand
Source§impl FromArgMatches for ClaudeWrapCommand
impl FromArgMatches for ClaudeWrapCommand
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.Source§impl Parser for ClaudeWrapCommand
impl Parser for ClaudeWrapCommand
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for ClaudeWrapCommand
impl RefUnwindSafe for ClaudeWrapCommand
impl Send for ClaudeWrapCommand
impl Sync for ClaudeWrapCommand
impl Unpin for ClaudeWrapCommand
impl UnsafeUnpin for ClaudeWrapCommand
impl UnwindSafe for ClaudeWrapCommand
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