pub struct VersionCommand;Expand description
Print the codex version string (codex --version).
§Example
use codex_wrapper::{Codex, CodexCommand, VersionCommand};
let codex = Codex::builder().build()?;
let output = VersionCommand::new().execute(&codex).await?;
println!("{}", output.stdout);Implementations§
Trait Implementations§
Source§impl Clone for VersionCommand
impl Clone for VersionCommand
Source§impl CodexCommand for VersionCommand
impl CodexCommand for VersionCommand
Source§impl Debug for VersionCommand
impl Debug for VersionCommand
Auto Trait Implementations§
impl Forget for VersionCommand
impl Freeze for VersionCommand
impl Move 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