pub enum Commands {
Show 15 variants
New {
name: String,
path: Option<PathBuf>,
},
Init {
name: Option<String>,
},
Build {
release: bool,
llvm: bool,
verbose: bool,
jobs: usize,
features: Vec<String>,
},
Run {
release: bool,
args: Vec<String>,
},
Test {
filter: Option<String>,
release: bool,
verbose: bool,
},
Clean,
Add {
name: String,
version: String,
dev: bool,
},
Remove {
name: String,
dev: bool,
},
Update {
package: Option<String>,
},
Search {
query: String,
limit: usize,
},
Info {
name: String,
},
Publish {
dry_run: bool,
},
Install {
name: String,
version: Option<String>,
},
Uninstall {
name: String,
},
List {
global: bool,
tree: bool,
},
}Variants§
New
Create a new Palladium package
Fields
Init
Initialize a new package in the current directory
Build
Build the current package
Fields
Run
Run the current package
Test
Run tests
Fields
Clean
Clean build artifacts
Add
Add a dependency
Fields
Remove
Remove a dependency
Update
Update dependencies
Search
Search for packages in the registry
Info
Show package information
Publish
Publish a package to the registry
Install
Install a package globally
Uninstall
Uninstall a global package
List
List installed packages
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
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 Commands
impl Subcommand for Commands
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 subcommandAuto Trait Implementations§
impl Freeze for Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnsafeUnpin for Commands
impl UnwindSafe for Commands
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