Browse Source

Ignore LogLevel on `fnm ls` (#404)

There is no reason to call `fnm ls` if you want a quiet output.
So even on quiet output, `fnm ls` should print all the data. It's not
debugging information, but the actual output of the program.
remotes/origin/add-with-shims
Gal Schlezinger 4 years ago committed by GitHub
parent
commit
869fb12ada
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/commands/ls_local.rs

5
src/commands/ls_local.rs

@ -1,7 +1,6 @@ @@ -1,7 +1,6 @@
use crate::alias::{list_aliases, StoredAlias};
use crate::config::FnmConfig;
use crate::current_version::current_version;
use crate::outln;
use crate::version::Version;
use colored::*;
use snafu::{ResultExt, Snafu};
@ -39,9 +38,9 @@ impl super::command::Command for LsLocal { @@ -39,9 +38,9 @@ impl super::command::Command for LsLocal {
let version_str = format!("* {}{}", version, version_aliases);
if curr_version == Some(version) {
outln!(config#Info, "{}", version_str.cyan());
println!("{}", version_str.cyan());
} else {
outln!(config#Info, "{}", version_str);
println!("{}", version_str);
}
}
Ok(())

Loading…
Cancel
Save