From a083eb3ca6bca12dc13c90a0acee206f6912197d Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Thu, 24 Oct 2019 09:48:24 -0400 Subject: [PATCH] Show what config file is being used in load --- cmdSet.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmdSet.go b/cmdSet.go index 565ddd2..ab3ec9d 100644 --- a/cmdSet.go +++ b/cmdSet.go @@ -24,7 +24,6 @@ func printSetting(cmd []string) { switch cmd[1] { case "load": loadFromToml() - printInfo("Loading config from toml") case "downloadPath": printInfo(fmt.Sprintf("Setting for %s -> %s", cmd[1], downloadPath)) case "outputFormat": @@ -72,7 +71,7 @@ func loadFromToml() { if !env { configFile = "kbtui.toml" } - + printInfoF("Loading config from toml: $TEXT", messageAttachmentColor.stylize(configFile)) config, err := toml.LoadFile(configFile) if err != nil { printError(fmt.Sprintf("Could not read config file: %+v", err))