pub struct VersionCommand;Expand description
Run claude --version to get the CLI version.
§Example
use claude_wrapper::{Claude, ClaudeCommand, VersionCommand};
let claude = Claude::builder().build()?;
let output = VersionCommand::new().execute(&claude).await?;
println!("claude version: {}", output.stdout.trim());Implementations§
Trait Implementations§
Source§impl ClaudeCommand for VersionCommand
impl ClaudeCommand for VersionCommand
Source§impl Clone for VersionCommand
impl Clone for VersionCommand
Source§fn clone(&self) -> VersionCommand
fn clone(&self) -> VersionCommand
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 VersionCommand
impl Debug for VersionCommand
Source§impl Default for VersionCommand
impl Default for VersionCommand
Source§fn default() -> VersionCommand
fn default() -> VersionCommand
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VersionCommand
impl RefUnwindSafe for VersionCommand
impl Send for VersionCommand
impl Sync for VersionCommand
impl Unpin for VersionCommand
impl UnsafeUnpin for VersionCommand
impl UnwindSafe for VersionCommand
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