pub struct InstallCommand { /* private fields */ }Expand description
Run claude install [target] [--force].
Installs a Claude Code native build. target accepts "stable",
"latest", or a specific version; omit it to use the CLI’s default.
§Example
use claude_wrapper::{Claude, ClaudeCommand, InstallCommand};
let claude = Claude::builder().build()?;
let out = InstallCommand::new()
.target("stable")
.force()
.execute(&claude)
.await?;
println!("{}", out.stdout);Implementations§
Trait Implementations§
Source§impl ClaudeCommand for InstallCommand
impl ClaudeCommand for InstallCommand
Source§impl Clone for InstallCommand
impl Clone for InstallCommand
Source§fn clone(&self) -> InstallCommand
fn clone(&self) -> InstallCommand
Returns a duplicate of the value. Read more
1.0.0 · 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 InstallCommand
impl Debug for InstallCommand
Source§impl Default for InstallCommand
impl Default for InstallCommand
Source§fn default() -> InstallCommand
fn default() -> InstallCommand
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InstallCommand
impl RefUnwindSafe for InstallCommand
impl Send for InstallCommand
impl Sync for InstallCommand
impl Unpin for InstallCommand
impl UnsafeUnpin for InstallCommand
impl UnwindSafe for InstallCommand
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
Source§impl<T> ClaudeCommandSyncExt for Twhere
T: ClaudeCommand<Output = CommandOutput>,
impl<T> ClaudeCommandSyncExt for Twhere
T: ClaudeCommand<Output = CommandOutput>,
Source§fn execute_sync(&self, claude: &Claude) -> Result<CommandOutput, Error>
fn execute_sync(&self, claude: &Claude) -> Result<CommandOutput, Error>
Blocking analog of
ClaudeCommand::execute for commands
producing CommandOutput.