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

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

Opinionated code formatter for TypeScript and JavaScript

Fields

stdio: bool

Reads unformatted code from standard input, prints formatted code to standard output, then exits

write: bool

Whether to write or check

details: DetailLevel

File diff detail

hide_passed: bool

Do not log passed filenames

color: When

When to use terminal color

log_format: LogFormat

Format of log messages

include: Option<InputStreamAddress>

Files whose contents contain paths to target files (- means stdin, other strings mean text file)

files: Vec<String>

Files to process

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

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> Conv for T[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<X> Pipe for X[src]

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

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

impl<Args> StructOptUtils for Args where
    Args: StructOpt
[src]

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

impl<T> Tap for T[src]

impl<T> TryConv for T[src]

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.