pub enum NinjaCommand {
Stage {
strict: bool,
json: bool,
},
Build {
glibc: Option<String>,
release: bool,
target: Option<String>,
},
}Variants§
Stage
fmt, lint & test then stage everything in git if all is good
To provide any specfic environment variables for the executed cargo commands create a workspace metadata section in Cargo.toml (if this is a single crate, you can add the section to the crate Cargo.toml without a problem, if it’s a workspace add it to the workspace Cargo.toml). For example:
[workspace.metadata.ninja-xtask]
env = {
"LD_LIBRARY_PATH" = false, # unset variable, do not inherit
"RUSTFLAGS" = "flag" # set variable, overwriting inherited value
}Build
build (optionally with zigbuild for a given glibc version)
Trait Implementations§
Source§impl From<&NinjaCommand> for CheckFlags
impl From<&NinjaCommand> for CheckFlags
Source§fn from(xtask: &NinjaCommand) -> Self
fn from(xtask: &NinjaCommand) -> Self
Converts to this type from the input type.
Source§impl FromArgMatches for NinjaCommand
impl FromArgMatches for NinjaCommand
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 NinjaCommand
impl Subcommand for NinjaCommand
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 NinjaCommand
impl RefUnwindSafe for NinjaCommand
impl Send for NinjaCommand
impl Sync for NinjaCommand
impl Unpin for NinjaCommand
impl UnsafeUnpin for NinjaCommand
impl UnwindSafe for NinjaCommand
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