[−][src]Struct abscissa_core::EntryPoint
Toplevel entrypoint command.
Handles obtaining toplevel help as well as verbosity settings.
Fields
config: Option<PathBuf>
Path to the configuration file
help: bool
Obtain help about the current command
verbose: bool
Increase verbosity setting
command: Option<Cmd>
Subcommand to execute.
The command
option will delegate option parsing to the command type,
starting at the first free argument.
Trait Implementations
impl<Cmd> Command for EntryPoint<Cmd> where
Cmd: Command + Runnable,
[src]
Cmd: Command + Runnable,
fn name() -> &'static str
[src]
Name of this program as a string
fn description() -> &'static str
[src]
Description of this program
fn version() -> &'static str
[src]
Version of this program
fn authors() -> &'static str
[src]
Authors of this program
fn subcommand_usage(command: &str) -> Option<Usage>
[src]
Get usage information for a particular subcommand (if available)
fn from_args<A: IntoIterator<Item = String>>(into_args: A) -> Self
[src]
Parse command-line arguments from a string iterator
fn from_env_args() -> Self
[src]
Parse command-line arguments from the environment
fn print_usage_and_exit(args: &[String]) -> !
[src]
Print usage information and exit
impl<Cfg, Cmd> Configurable<Cfg> for EntryPoint<Cmd> where
Cmd: Command + Configurable<Cfg> + Runnable,
Cfg: Config,
[src]
Cmd: Command + Configurable<Cfg> + Runnable,
Cfg: Config,
fn config_path(&self) -> Option<PathBuf>
[src]
Path to the command's configuration file
fn process_config(&self, config: Cfg) -> Result<Cfg, FrameworkError>
[src]
Process the configuration after it has been loaded, potentially modifying it or returning an error if options are incompatible
impl<Cmd> Runnable for EntryPoint<Cmd> where
Cmd: Command + Runnable,
[src]
Cmd: Command + Runnable,
impl<Cmd: Debug> Debug for EntryPoint<Cmd> where
Cmd: Command + Runnable,
[src]
Cmd: Command + Runnable,
impl<Cmd> Options for EntryPoint<Cmd> where
Cmd: Command + Runnable,
[src]
Cmd: Command + Runnable,
fn parse<__S: AsRef<str>>(_parser: &mut Parser<__S>) -> Result<Self, Error>
[src]
fn command_name(&self) -> Option<&'static str>
[src]
fn help_requested(&self) -> bool
[src]
fn parse_command<__S: AsRef<str>>(
name: &str,
_parser: &mut Parser<__S>
) -> Result<Self, Error>
[src]
name: &str,
_parser: &mut Parser<__S>
) -> Result<Self, Error>
fn usage() -> &'static str
[src]
fn command_list() -> Option<&'static str>
[src]
fn command_usage(_name: &str) -> Option<&'static str>
[src]
fn parse_args<S>(args: &[S], style: ParsingStyle) -> Result<Self, Error> where
S: AsRef<str>,
[src]
S: AsRef<str>,
Parses arguments received from the command line. Read more
fn parse_args_or_exit(style: ParsingStyle) -> Self
[src]
Parses arguments from the environment. Read more
fn parse_args_default_or_exit() -> Self
[src]
Parses arguments from the environment, using the default parsing style. Read more
fn parse_args_default<S>(args: &[S]) -> Result<Self, Error> where
S: AsRef<str>,
[src]
S: AsRef<str>,
Parses arguments received from the command line, using the default parsing style. Read more
Auto Trait Implementations
impl<Cmd> Send for EntryPoint<Cmd> where
Cmd: Send,
Cmd: Send,
impl<Cmd> Unpin for EntryPoint<Cmd> where
Cmd: Unpin,
Cmd: Unpin,
impl<Cmd> Sync for EntryPoint<Cmd> where
Cmd: Sync,
Cmd: Sync,
impl<Cmd> UnwindSafe for EntryPoint<Cmd> where
Cmd: UnwindSafe,
Cmd: UnwindSafe,
impl<Cmd> RefUnwindSafe for EntryPoint<Cmd> where
Cmd: RefUnwindSafe,
Cmd: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,