mirror of https://github.com/XAMPPRocky/tokei
Update get_config documentation
This commit is contained in:
parent
21fc3e65a3
commit
8e37ba8e64
|
|
@ -40,9 +40,10 @@ pub struct Config {
|
|||
}
|
||||
|
||||
impl Config {
|
||||
/// Get either `tokei.toml` or `.tokeirc`. `tokei.toml` takes precedence
|
||||
/// over `.tokeirc` as the latter is a hidden file on Unix and not idiomatic
|
||||
/// on Windows.
|
||||
/// Constructs a new `Config` from either `$base/tokei.toml` or
|
||||
/// `$base/.tokeirc`. `tokei.toml` takes precedence over `.tokeirc`
|
||||
/// as the latter is a hidden file on Unix and not an idiomatic
|
||||
/// filename on Windows.
|
||||
fn get_config(base: PathBuf) -> Option<Self> {
|
||||
fs::read_to_string(base.join("tokei.toml"))
|
||||
.ok()
|
||||
|
|
|
|||
Loading…
Reference in New Issue