pub(crate) struct ConfigParser {
pub(crate) workspace: Option<Utf8PathBuf>,
pub(crate) execution_root: Option<Utf8PathBuf>,
pub(crate) output_base: Option<Utf8PathBuf>,
pub(crate) bazel: Utf8PathBuf,
pub(crate) config: Option<String>,
pub(crate) targets: Vec<String>,
}
Fields§
§workspace: Option<Utf8PathBuf>
The path to the Bazel workspace directory. If not specified, uses the result of bazel info workspace
.
execution_root: Option<Utf8PathBuf>
The path to the Bazel execution root. If not specified, uses the result of bazel info execution_root
.
output_base: Option<Utf8PathBuf>
The path to the Bazel output user root. If not specified, uses the result of bazel info output_base
.
bazel: Utf8PathBuf
The path to a Bazel binary.
config: Option<String>
A config to pass to Bazel invocations with --config=<config>
.
targets: Vec<String>
Space separated list of target patterns that comes after all other args.
Trait Implementations§
Source§impl Args for ConfigParser
impl Args for ConfigParser
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§impl CommandFactory for ConfigParser
impl CommandFactory for ConfigParser
Source§impl Debug for ConfigParser
impl Debug for ConfigParser
Source§impl FromArgMatches for ConfigParser
impl FromArgMatches for ConfigParser
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 ConfigParser
impl Parser for ConfigParser
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for ConfigParser
impl RefUnwindSafe for ConfigParser
impl Send for ConfigParser
impl Sync for ConfigParser
impl Unpin for ConfigParser
impl UnwindSafe for ConfigParser
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
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)The largest safe length for a
[Self]
. Read more