pub fn override_config(&mut self, mut config: Config) -> Config {
        config.hidden = if self.hidden {
            Some(true)
        } else {
            config.hidden
        };

        config.no_ignore = if self.no_ignore {
            Some(true)
        } else {
            config.no_ignore
        };

        config.no_ignore_parent = if self.no_ignore_parent {
            Some(true)
        } else {
            config.no_ignore_parent
        };

        config.no_ignore_dot = if self.no_ignore_dot {
            Some(true)
        } else {
            config.no_ignore_dot
        };

        config.no_ignore_vcs = if self.no_ignore_vcs {
            Some(true)
        } else {
            config.no_ignore_vcs
        };

        config.for_each_fn = match self.streaming {
            Some(Streaming::Json) => Some(|l: LanguageType, e| {
                println!("{}", serde_json::json!({"language": l.name(), "stats": e}))
            }),
            Some(Streaming::Simple) => Some(|l: LanguageType, e| {
                println!(
                    "{:>10} {:<80} {:>12} {:>12} {:>12} {:>12}",
                    l.name(),
                    e.name.to_string_lossy().to_string(),
                    e.stats.lines(),
                    e.stats.code,
                    e.stats.comments,
                    e.stats.blanks
                )
            }),
            _ => None,
        };

        config.types = mem::replace(&mut self.types, None).or(config.types);

        config
    }
/// Overrides the shared options (See `tokei::Config` for option
/// descriptions) between the CLI and the config files. CLI flags have
/// higher precedence than options present in config files.
///
/// #### Shared options
/// * `no_ignore`
/// * `no_ignore_parent`
/// * `no_ignore_dot`
/// * `no_ignore_vcs`
/// * `types`
Overrides the shared options (See `tokei::Config` for option
descriptions) between the CLI and the config files. CLI flags have
higher precedence than options present in config files.
Overrides the shared options ( See ` tokei :: Config ` for option descriptions ) between the CLI and the config files . CLI flags have higher precedence than options present in config files .
pub fn override_config(&mut self, mut config: Config) -> Config {
        config.hidden = if self.hidden {
            Some(true)
        } else {
            config.hidden
        };
        config.no_ignore = if self.no_ignore {
            Some(true)
        } else {
            config.no_ignore
        };
        config.no_ignore_parent = if self.no_ignore_parent {
            Some(true)
        } else {
            config.no_ignore_parent
        };
        config.no_ignore_dot = if self.no_ignore_dot {
            Some(true)
        } else {
            config.no_ignore_dot
        };
        config.no_ignore_vcs = if self.no_ignore_vcs {
            Some(true)
        } else {
            config.no_ignore_vcs
        };
        config.for_each_fn = match self.streaming {
            Some(Streaming::Json) => Some(|l: LanguageType, e| {
                println!("{}", serde_json::json!({"language": l.name(), "stats": e}))
            }),
            Some(Streaming::Simple) => Some(|l: LanguageType, e| {
                println!(
                    "{:>10} {:<80} {:>12} {:>12} {:>12} {:>12}",
                    l.name(),
                    e.name.to_string_lossy().to_string(),
                    e.stats.lines(),
                    e.stats.code,
                    e.stats.comments,
                    e.stats.blanks
                )
            }),
            _ => None,
        };
        config.types = mem::replace(&mut self.types, None).or(config.types);
        config
    }
pub fn override_config ( & mut self , mut config : Config ) -> Config { config . hidden = if self . hidden { Some ( true ) } else { config . hidden } ; config . no_ignore = if self . no_ignore { Some ( true ) } else { config . no_ignore } ; config . no_ignore_parent = if self . no_ignore_parent { Some ( true ) } else { config . no_ignore_parent } ; config . no_ignore_dot = if self . no_ignore_dot { Some ( true ) } else { config . no_ignore_dot } ; config . no_ignore_vcs = if self . no_ignore_vcs { Some ( true ) } else { config . no_ignore_vcs } ; config . for_each_fn = match self . streaming { Some ( Streaming :: Json ) => Some ( | l : LanguageType , e | { println ! ( " " serde_json json ( { " " l name ( ) " " e } ) ) } ) , Some ( Streaming :: Simple ) => Some ( | l : LanguageType , e | { println ! ( " " l name ( ) e name to_string_lossy ( ) to_string ( ) e stats lines ( ) e stats code e stats comments e stats blanks ) } ) , _ => None , } ; config . types = mem :: replace ( & mut self . types , None ) . or ( config . types ) ; config }
Overrides the shared options (See `tokei::Config` for option
descriptions) between the CLI and the config files.
Overrides the shared options ( See ` tokei :: Config ` for option descriptions ) between the CLI and the config files .
&mut self
config
Config
&mut self
config
Config
shared options
`no_ignore`
`no_ignore_parent`
`no_ignore_dot`
`no_ignore_vcs`
`types`
` no_ignore ` ` no_ignore_parent ` ` no_ignore_dot ` ` no_ignore_vcs ` ` types `