pub enum Command {
List {
query: Vec<String>,
},
Search {
query: Vec<String>,
},
Install {
query: Vec<String>,
ignore_checksum_security: bool,
plan: bool,
},
Info,
Version,
Doctor {
json: bool,
warn_as_error: bool,
},
Update,
Remove {
name: Vec<String>,
yes: bool,
force: bool,
},
Repair {
yes: bool,
},
Config {
command: ConfigCommand,
},
Completions {
shell: CompletionShell,
},
}Variants§
List
List packages installed by winbrew
Search
Search the package catalog
Install
Install a package from the catalog
Use @winget/<id> or @scoop/<bucket>/<id> for exact package IDs.
Fields
Info
Show effective runtime settings and paths
Version
Print the winbrew version
Doctor
Check local winbrew installation health
Fields
Update
Refresh the package catalog
Remove
Remove a package and its tracked files
Repair
Replay committed journals into the local database
Config
Get or set winbrew configuration values.
Configuration keys are hierarchical:
core.*controls runtime behavior and loggingpaths.*controls storage locations
Examples:
winbrew config get core.log_levelwinbrew config get paths.rootwinbrew config set core.color falsewinbrew config unset paths.cache
Fields
§
command: ConfigCommandCompletions
Generate shell completions for winbrew.
Fields
§
shell: CompletionShellTrait Implementations§
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for Command
impl Subcommand for Command
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandimpl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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
§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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key and return true if they are equal.