From 38695074fd51004367895c785fff20aed3459900 Mon Sep 17 00:00:00 2001 From: Gal Schlezinger Date: Tue, 2 Mar 2021 13:08:56 +0200 Subject: [PATCH] Ignore LogLevel on `fnm ls` 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. --- src/commands/ls_local.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/commands/ls_local.rs b/src/commands/ls_local.rs index 20807303..673865fc 100644 --- a/src/commands/ls_local.rs +++ b/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}; @@ -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(())