pub struct FreightArgs { /* private fields */ }Expand description
Command line options for running assemble based projects.
Tasks can either be the full path for the task, or a relative one from the directory in use within the project.
Task options are configured on per task basis and are fully configured at compile time. Options for tasks must immediately follow the task request.
When many tasks are matched for the same task request, they all receive the same task options.
Implementations§
Source§impl FreightArgs
impl FreightArgs
Sourcepub fn command_line<S: AsRef<str>>(cmd: S) -> Self
pub fn command_line<S: AsRef<str>>(cmd: S) -> Self
Simulate creating the freight args from the command line
Sourcepub fn try_command_line<S: AsRef<str>>(cmd: S) -> Result<Self, Error>
pub fn try_command_line<S: AsRef<str>>(cmd: S) -> Result<Self, Error>
Simulate creating the freight args from the command line
Sourcepub fn task_requests(
&self,
project: &SharedProject,
) -> ProjectResult<TaskRequests>
pub fn task_requests( &self, project: &SharedProject, ) -> ProjectResult<TaskRequests>
Generate a task requests value using a shared project
Sourcepub fn task_requests_raw(&self) -> &[String]
pub fn task_requests_raw(&self) -> &[String]
Generate a task requests value using a shared project
Sourcepub fn with_tasks<'s, I: IntoIterator<Item = &'s str>>(
&self,
iter: I,
) -> FreightArgs
pub fn with_tasks<'s, I: IntoIterator<Item = &'s str>>( &self, iter: I, ) -> FreightArgs
Creates a clone with different tasks requests
Sourcepub fn logging(&self) -> &LoggingArgs
pub fn logging(&self) -> &LoggingArgs
Gets the logging args
Sourcepub fn backtrace(&self) -> BacktraceEmit
pub fn backtrace(&self) -> BacktraceEmit
Get whether to emit backtraces or not.
Sourcepub fn rerun_tasks(&self) -> bool
pub fn rerun_tasks(&self) -> bool
Get whether to always rerun tasks.
pub fn properties(&self) -> &ProjectProperties
Trait Implementations§
Source§impl Args for FreightArgs
impl Args for FreightArgs
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for FreightArgs
impl Clone for FreightArgs
Source§fn clone(&self) -> FreightArgs
fn clone(&self) -> FreightArgs
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl CommandFactory for FreightArgs
impl CommandFactory for FreightArgs
Source§impl Debug for FreightArgs
impl Debug for FreightArgs
Source§impl From<FreightArgs> for StartParameter
impl From<FreightArgs> for StartParameter
Source§fn from(args: FreightArgs) -> Self
fn from(args: FreightArgs) -> Self
Source§impl FromArgMatches for FreightArgs
impl FromArgMatches for FreightArgs
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>
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>
ArgMatches to self.Source§impl Merge for FreightArgs
impl Merge for FreightArgs
Source§impl Parser for FreightArgs
impl Parser for FreightArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, 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 FreightArgs
impl RefUnwindSafe for FreightArgs
impl Send for FreightArgs
impl Sync for FreightArgs
impl Unpin for FreightArgs
impl UnwindSafe for FreightArgs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> InstanceOf for T
impl<T> InstanceOf for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more