Struct cargo_bazel::cli::SpliceOptions
source · pub struct SpliceOptions {
pub splicing_manifest: PathBuf,
pub cargo_lockfile: Option<PathBuf>,
pub repin: Option<CargoUpdateRequest>,
pub workspace_dir: Option<PathBuf>,
pub output_dir: PathBuf,
pub dry_run: bool,
pub cargo_config: Option<PathBuf>,
pub config: PathBuf,
pub cargo: PathBuf,
pub rustc: PathBuf,
}Expand description
Command line options for the splice subcommand
Fields§
§splicing_manifest: PathBufA generated manifest of splicing inputs
cargo_lockfile: Option<PathBuf>The path to a Cargo.lock file.
repin: Option<CargoUpdateRequest>The desired update/repin behavior
workspace_dir: Option<PathBuf>The directory in which to build the workspace. If this argument is not passed, a temporary directory will be generated.
output_dir: PathBufThe location where the results of splicing are written.
dry_run: boolIf true, outputs will be printed instead of written to disk.
cargo_config: Option<PathBuf>The path to a Cargo configuration file.
config: PathBufThe path to the config file (containing cargo_bazel::config::Config.)
cargo: PathBufThe path to a Cargo binary to use for gathering metadata
rustc: PathBufThe path to a rustc binary for use with Cargo
Trait Implementations§
source§impl Args for SpliceOptions
impl Args for SpliceOptions
source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§impl CommandFactory for SpliceOptions
impl CommandFactory for SpliceOptions
source§impl Debug for SpliceOptions
impl Debug for SpliceOptions
source§impl FromArgMatches for SpliceOptions
impl FromArgMatches for SpliceOptions
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(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches to self.source§impl Parser for SpliceOptions
impl Parser for SpliceOptions
source§fn try_parse() -> Result<Self, Error<RichFormatter>>
fn try_parse() -> Result<Self, Error<RichFormatter>>
Parse from
std::env::args_os(), return Err on error.source§fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, exit on error
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
source§fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, exit on error
source§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Update from iterator, return Err on error.