mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
dircolors: make a function and an enum private
This commit is contained in:
committed by
Sylvestre Ledru
parent
f1073d7c9e
commit
390cd77f6e
@@ -30,14 +30,14 @@ mod options {
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Eq, Debug)]
|
||||
pub enum OutputFmt {
|
||||
enum OutputFmt {
|
||||
Shell,
|
||||
CShell,
|
||||
Display,
|
||||
Unknown,
|
||||
}
|
||||
|
||||
pub fn guess_syntax() -> OutputFmt {
|
||||
fn guess_syntax() -> OutputFmt {
|
||||
match env::var("SHELL") {
|
||||
Ok(ref s) if !s.is_empty() => {
|
||||
let shell_path: &Path = s.as_ref();
|
||||
|
||||
Reference in New Issue
Block a user