pub struct UpdateCommand;Expand description
Run claude update (alias upgrade).
Checks for updates and installs if available. Takes no options.
§Example
use claude_wrapper::{Claude, ClaudeCommand, UpdateCommand};
let claude = Claude::builder().build()?;
let out = UpdateCommand::new().execute(&claude).await?;
println!("{}", out.stdout);Implementations§
Source§impl UpdateCommand
impl UpdateCommand
Trait Implementations§
Source§impl ClaudeCommand for UpdateCommand
impl ClaudeCommand for UpdateCommand
Source§impl Clone for UpdateCommand
impl Clone for UpdateCommand
Source§fn clone(&self) -> UpdateCommand
fn clone(&self) -> UpdateCommand
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 UpdateCommand
impl Debug for UpdateCommand
Source§impl Default for UpdateCommand
impl Default for UpdateCommand
Source§fn default() -> UpdateCommand
fn default() -> UpdateCommand
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpdateCommand
impl RefUnwindSafe for UpdateCommand
impl Send for UpdateCommand
impl Sync for UpdateCommand
impl Unpin for UpdateCommand
impl UnsafeUnpin for UpdateCommand
impl UnwindSafe for UpdateCommand
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.