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
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new UpdateCommand.
Trait Implementations§
Source§impl ClaudeCommand for UpdateCommand
impl ClaudeCommand for UpdateCommand
Source§impl Clone for UpdateCommand
impl Clone for UpdateCommand
Source§impl Debug for UpdateCommand
impl Debug for UpdateCommand
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.