Struct system_env::PackageManagerConfig
source · pub struct PackageManagerConfig {
pub commands: HashMap<CommandType, Vec<String>>,
pub prompt_arg: PromptArgument,
pub prompt_for: Vec<CommandType>,
pub version_arg: VersionArgument,
}
Expand description
Configuration for a specific package manager vendor. The fields define commands and arguments for common operations.
Fields§
§commands: HashMap<CommandType, Vec<String>>
Mapping of command types to CLI arguments.
prompt_arg: PromptArgument
How interactive/prompt arguments are handled.
prompt_for: Vec<CommandType>
List of commands that support prompts.
version_arg: VersionArgument
How version arguments are handled.
Trait Implementations§
source§impl Clone for PackageManagerConfig
impl Clone for PackageManagerConfig
source§fn clone(&self) -> PackageManagerConfig
fn clone(&self) -> PackageManagerConfig
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for PackageManagerConfig
impl Send for PackageManagerConfig
impl Sync for PackageManagerConfig
impl Unpin for PackageManagerConfig
impl UnwindSafe for PackageManagerConfig
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