[][src]Struct sane_fmt::cli_opt::CliOpt

pub struct CliOpt {
    pub write: bool,
    pub details: DetailLevel,
    pub hide_passed: bool,
    pub color: When,
    pub log_format: LogFormat,
    pub files: Vec<String>,
}

Fields

write: bool

Whether to write or check

details: DetailLevel

File diff detail [possible values: count, name, diff]

hide_passed: bool

Do not log passed filenames

color: When

When to use terminal color [possible values: auto, never, always]

log_format: LogFormat

Format of log messages [possible values: human, github-actions]

files: Vec<String>

Files to process

If none are provided, a default set of files will be assumed

Implementations

impl CliOpt[src]

pub fn get() -> Self[src]

Parse arguments from env::args.

Unlike StructOpt::from_args, this function treat unknown flags as errors.

Trait Implementations

impl Debug for CliOpt[src]

impl StructOpt for CliOpt[src]

impl StructOptInternal for CliOpt[src]

Auto Trait Implementations

impl RefUnwindSafe for CliOpt

impl Send for CliOpt

impl Sync for CliOpt

impl Unpin for CliOpt

impl UnwindSafe for CliOpt

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Node for T where
    T: Any + ?Sized

impl<X> Pipe for X[src]

impl<T> Send for T where
    T: ?Sized

impl<T> Sync for T where
    T: ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.