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
crate::Claude::cli_version_status.
Variants§
Tested
CLI version is within the tested-against range.
NewerUntested
CLI is newer than the wrapper’s tested-against maximum. Semantics may have drifted; the wrapper should still generally work but unexpected behavior is possible.
Fields
found: CliVersionThe installed CLI version.
tested_max: CliVersionHighest CLI version the wrapper has been tested against.
OlderThanMinimum
CLI is older than the declared minimum. The wrapper is known to behave incorrectly against this version (missing flags, different argument shapes).
Fields
found: CliVersionThe installed CLI version.
minimum: CliVersionLowest CLI version the wrapper supports.
Implementations§
Source§impl CliVersionStatus
impl CliVersionStatus
Sourcepub fn is_tested(self) -> bool
pub fn is_tested(self) -> bool
True only for CliVersionStatus::Tested. Useful for
callers branching on “should I run?” without pattern
matching every variant.
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 moreimpl Copy for CliVersionStatus
Source§impl Debug for CliVersionStatus
impl Debug for CliVersionStatus
impl Eq for CliVersionStatus
Source§impl PartialEq for CliVersionStatus
impl PartialEq for CliVersionStatus
Source§fn eq(&self, other: &CliVersionStatus) -> bool
fn eq(&self, other: &CliVersionStatus) -> bool
self and other values to be equal, and is used by ==.