pub struct CliInstall {
pub provider_id: String,
pub command: String,
pub specs: Vec<String>,
pub version: String,
}Expand description
What to install for one container agent.
Fields§
§provider_id: String§command: StringThe command turns run, e.g. claude.
specs: Vec<String>name@version for the CLI and its companions.
version: StringThe pinned version, for the pane’s “Installing Claude Code 2.1.288” row.
Implementations§
Source§impl CliInstall
impl CliInstall
Sourcepub fn for_provider(provider_id: &str, container_command: &str) -> Option<Self>
pub fn for_provider(provider_id: &str, container_command: &str) -> Option<Self>
The install for provider_id, if the container runs that provider’s own
CLI by its usual name and the provider is installed from npm. None
for a custom command or a provider that is not an npm package.
Sourcepub fn marker(&self) -> String
pub fn marker(&self) -> String
File name inside CONTAINER_CLI_DIR that says this exact set of
packages is installed. A new pin changes it, which is what makes the
next start reinstall.
Sourcepub fn check_argv(&self) -> Vec<String>
pub fn check_argv(&self) -> Vec<String>
argv for the fast check; prints present or missing. The command on
the image’s own PATH counts as present: that is a legacy image with
the CLI baked in, which must be left alone.
Sourcepub fn install_argv(&self, limits: InstallLimits) -> Vec<String>
pub fn install_argv(&self, limits: InstallLimits) -> Vec<String>
argv for the install. Everything variable is a positional parameter, never spliced into the script text.
Trait Implementations§
Source§impl Clone for CliInstall
impl Clone for CliInstall
Source§fn clone(&self) -> CliInstall
fn clone(&self) -> CliInstall
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CliInstall
impl Debug for CliInstall
impl Eq for CliInstall
Source§impl PartialEq for CliInstall
impl PartialEq for CliInstall
impl StructuralPartialEq for CliInstall
Auto Trait Implementations§
impl Freeze for CliInstall
impl RefUnwindSafe for CliInstall
impl Send for CliInstall
impl Sync for CliInstall
impl Unpin for CliInstall
impl UnsafeUnpin for CliInstall
impl UnwindSafe for CliInstall
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more