Args

Struct Args 

Source
pub struct Args {
Show 31 fields pub help: bool, pub version: bool, pub prefs: bool, pub headless: bool, pub summary: bool, pub no_summary: bool, pub wrap: bool, pub no_wrap: bool, pub reverse: bool, pub no_reverse: bool, pub help_line: bool, pub no_help_line: bool, pub list_jobs: bool, pub completion_list_jobs: bool, pub offline: bool, pub init: bool, pub listen: bool, pub no_listen: bool, pub send: Option<String>, pub job: Option<ConcreteJobRef>, pub no_default_features: bool, pub features: Option<String>, pub all_features: bool, pub export_locations: bool, pub no_export_locations: bool, pub watch: Option<String>, pub project: Option<String>, pub config_toml: Option<String>, pub generate_config_schema: bool, pub args: Vec<String>, pub additional_job_args: Vec<String>,
}
Expand description

Launch arguments

Fields§

§help: bool

Print help information

§version: bool

Print the version

§prefs: bool

Print the path to the prefs file, create it if it doesn’t exist

§headless: bool

Run without user interface: just run the default job on change

§summary: bool

Start in summary mode

§no_summary: bool

Start in full mode (not summary)

§wrap: bool

Start with lines wrapped

§no_wrap: bool

Start with lines not wrapped

§reverse: bool

Start with gui vertical order reversed

§no_reverse: bool

Start with standard gui order

§help_line: bool

Display a help line

§no_help_line: bool

Do not display a help line

§list_jobs: bool

List available jobs

§completion_list_jobs: bool§offline: bool

Don’t access the network

§init: bool

Create a bacon.toml file, ready to be customized

§listen: bool

Listen on a unix socket for commands

§no_listen: bool

Don’t listen on a unix socket for commands

§send: Option<String>

Send a command on bacon’s unix socket

§job: Option<ConcreteJobRef>

Job to launch: check, clippy, custom ones…

§no_default_features: bool

Ignore features of both the package and the bacon job

§features: Option<String>

Comma separated list of features (if the job defines some, they’re merged)

§all_features: bool

Activate all available features

§export_locations: bool

Export locations in .bacon-locations file

§no_export_locations: bool

Don’t export locations

§watch: Option<String>

Path to watch (overriding what’s normally computed from the project’s type, bacon.toml file, etc.)

§project: Option<String>

Project to run jobs on, and use as working directory

§config_toml: Option<String>

Configuration passed as a TOML string

§generate_config_schema: bool

Generate the JSON Schema for bacon configuration files

§args: Vec<String>

What to do: either a job, or a path, or both

§additional_job_args: Vec<String>

Arguments given to the job

Implementations§

Source§

impl Args

Source

pub fn fix(&mut self) -> Result<()>

positional arguments in bacon command are a convenience allowing to skip writing -j, -p, or both. To be used, they must be copied to the job or path values.

Source

pub fn print_help(&self)

Trait Implementations§

Source§

impl Args for Args

Source§

fn group_id() -> Option<Id>

Report the ArgGroup::id for this set of arguments
Source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

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 more
Source§

impl CommandFactory for Args

Source§

fn command<'b>() -> Command

Build a Command that can instantiate Self. Read more
Source§

fn command_for_update<'b>() -> Command

Build a Command that can update self. Read more
Source§

impl Debug for Args

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for Args

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

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>

Assign values from ArgMatches to self.
Source§

impl Parser for Args

Source§

fn parse() -> Self

Parse from std::env::args_os(), exit on error.
Source§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
Source§

fn parse_from<I, T>(itr: I) -> Self
where 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>
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,

Update from iterator, exit on error. Read more
Source§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

§

impl Freeze for Args

§

impl RefUnwindSafe for Args

§

impl Send for Args

§

impl Sync for Args

§

impl Unpin for Args

§

impl UnwindSafe for Args

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T