pub enum CliVersionStatus {
Tested,
NewerUntested {
found: CliVersion,
tested_max: CliVersion,
},
OlderThanMinimum {
found: CliVersion,
minimum: CliVersion,
},
}Expand description
Classification of an installed CLI version against a tested range.
Returned by CliVersion::status_within and
Codex::cli_version_status. Mirrors
claude-wrapper’s enum of the same name so a downstream abstraction can
treat both wrappers uniformly.
There is deliberately no Unparseable variant: unparseable output is an
error from Codex::cli_version, not a status,
and modeling it twice would fork this shape away from the sibling crate.
Variants§
Tested
Within the tested-against range.
NewerUntested
Newer than the highest tested version.
The wrapper should still generally work; semantics may have drifted.
Fields
found: CliVersionThe installed CLI version.
tested_max: CliVersionHighest version this wrapper is tested against.
OlderThanMinimum
Older than the lowest tested version.
Incorrect behavior is likely rather than merely possible: the arguments this wrapper emits target the newer CLI, and older releases reject some of them outright.
Fields
found: CliVersionThe installed CLI version.
minimum: CliVersionLowest version this wrapper is tested against.
Implementations§
Trait Implementations§
Source§impl Clone for CliVersionStatus
impl Clone for CliVersionStatus
Source§fn clone(&self) -> CliVersionStatus
fn clone(&self) -> CliVersionStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more