Skip to content

Commit

Permalink
Ignore LogLevel on fnm ls (#404)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Schniz committed Mar 5, 2021
1 parent de24c40 commit 869fb12
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/commands/ls_local.rs
@@ -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};
Expand Down Expand Up @@ -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(())
Expand Down

1 comment on commit 869fb12

@vercel
Copy link

@vercel vercel bot commented on 869fb12 Mar 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

Please sign in to comment.