Struct abscissa_core::EntryPoint [−][src]
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]
fn from_env_args() -> Self
[src]
fn print_usage_and_exit(args: &[String]) -> !
[src]
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: 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]
pub fn parse_args<S>(args: &[S], style: ParsingStyle) -> Result<Self, Error> where
S: AsRef<str>,
[src]
S: AsRef<str>,
pub fn parse_args_or_exit(style: ParsingStyle) -> Self
[src]
pub fn parse_args_default_or_exit() -> Self
[src]
pub fn parse_args_default<S>(args: &[S]) -> Result<Self, Error> where
S: AsRef<str>,
[src]
S: AsRef<str>,
impl<Cmd> Runnable for EntryPoint<Cmd> where
Cmd: Command + Runnable,
[src]
Cmd: Command + Runnable,
Auto Trait Implementations
impl<Cmd> RefUnwindSafe for EntryPoint<Cmd> where
Cmd: RefUnwindSafe,
[src]
Cmd: RefUnwindSafe,
impl<Cmd> Send for EntryPoint<Cmd> where
Cmd: Send,
[src]
Cmd: Send,
impl<Cmd> Sync for EntryPoint<Cmd> where
Cmd: Sync,
[src]
Cmd: Sync,
impl<Cmd> Unpin for EntryPoint<Cmd> where
Cmd: Unpin,
[src]
Cmd: Unpin,
impl<Cmd> UnwindSafe for EntryPoint<Cmd> where
Cmd: UnwindSafe,
[src]
Cmd: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any,
[src]
T: Any,
pub fn as_any(&Self) -> &(dyn Any + 'static)
[src]
pub fn as_mut_any(&mut Self) -> &mut (dyn Any + 'static)
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<D> OwoColorize for D
pub fn fg<C>(&'a self) -> FgColorDisplay<'a, C, Self> where
C: Color,
C: Color,
pub fn bg<C>(&'a self) -> BgColorDisplay<'a, C, Self> where
C: Color,
C: Color,
pub fn black(&'a self) -> FgColorDisplay<'a, Black, Self>
pub fn on_black(&'a self) -> BgColorDisplay<'a, Black, Self>
pub fn red(&'a self) -> FgColorDisplay<'a, Red, Self>
pub fn on_red(&'a self) -> BgColorDisplay<'a, Red, Self>
pub fn green(&'a self) -> FgColorDisplay<'a, Green, Self>
pub fn on_green(&'a self) -> BgColorDisplay<'a, Green, Self>
pub fn yellow(&'a self) -> FgColorDisplay<'a, Yellow, Self>
pub fn on_yellow(&'a self) -> BgColorDisplay<'a, Yellow, Self>
pub fn blue(&'a self) -> FgColorDisplay<'a, Blue, Self>
pub fn on_blue(&'a self) -> BgColorDisplay<'a, Blue, Self>
pub fn magenta(&'a self) -> FgColorDisplay<'a, Magenta, Self>
pub fn on_magenta(&'a self) -> BgColorDisplay<'a, Magenta, Self>
pub fn purple(&'a self) -> FgColorDisplay<'a, Magenta, Self>
pub fn on_purple(&'a self) -> BgColorDisplay<'a, Magenta, Self>
pub fn cyan(&'a self) -> FgColorDisplay<'a, Cyan, Self>
pub fn on_cyan(&'a self) -> BgColorDisplay<'a, Cyan, Self>
pub fn white(&'a self) -> FgColorDisplay<'a, White, Self>
pub fn on_white(&'a self) -> BgColorDisplay<'a, White, Self>
pub fn bright_black(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>
pub fn on_bright_black(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>
pub fn bright_red(&'a self) -> FgColorDisplay<'a, BrightRed, Self>
pub fn on_bright_red(&'a self) -> BgColorDisplay<'a, BrightRed, Self>
pub fn bright_green(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>
pub fn on_bright_green(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>
pub fn bright_yellow(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>
pub fn on_bright_yellow(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>
pub fn bright_blue(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>
pub fn on_bright_blue(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>
pub fn bright_magenta(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
pub fn on_bright_magenta(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
pub fn bright_purple(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>
pub fn on_bright_purple(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>
pub fn bright_cyan(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>
pub fn on_bright_cyan(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>
pub fn bright_white(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>
pub fn on_bright_white(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>
pub fn bold(&'a self) -> BoldDisplay<'a, Self>
pub fn dimmed(&'a self) -> DimDisplay<'a, Self>
pub fn italic(&'a self) -> ItalicDisplay<'a, Self>
pub fn underline(&'a self) -> UnderlineDisplay<'a, Self>
pub fn blink(&'a self) -> BlinkDisplay<'a, Self>
pub fn blink_fast(&'a self) -> BlinkFastDisplay<'a, Self>
pub fn reversed(&'a self) -> ReversedDisplay<'a, Self>
pub fn hidden(&'a self) -> HiddenDisplay<'a, Self>
pub fn strikethrough(&'a self) -> StrikeThroughDisplay<'a, Self>
pub fn color<Color>(
&'a self,
color: Color
) -> FgDynColorDisplay<'a, Color, Self> where
Color: DynColor,
&'a self,
color: Color
) -> FgDynColorDisplay<'a, Color, Self> where
Color: DynColor,
pub fn on_color<Color>(
&'a self,
color: Color
) -> BgDynColorDisplay<'a, Color, Self> where
Color: DynColor,
&'a self,
color: Color
) -> BgDynColorDisplay<'a, Color, Self> where
Color: DynColor,
pub fn truecolor(
&'a self,
r: u8,
g: u8,
b: u8
) -> FgDynColorDisplay<'a, Rgb, Self>
&'a self,
r: u8,
g: u8,
b: u8
) -> FgDynColorDisplay<'a, Rgb, Self>
pub fn on_truecolor(
&'a self,
r: u8,
g: u8,
b: u8
) -> BgDynColorDisplay<'a, Rgb, Self>
&'a self,
r: u8,
g: u8,
b: u8
) -> BgDynColorDisplay<'a, Rgb, Self>
pub fn style(&self, style: Style) -> Styled<&Self>
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.
pub 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>,