1
0
mirror of https://github.com/Rudi9719/kbtui.git synced 2026-03-22 09:57:24 +00:00

Show what config file is being used in load

This commit is contained in:
2019-10-24 09:48:24 -04:00
parent 87d1b19aeb
commit a083eb3ca6

View File

@ -24,7 +24,6 @@ func printSetting(cmd []string) {
switch cmd[1] { switch cmd[1] {
case "load": case "load":
loadFromToml() loadFromToml()
printInfo("Loading config from toml")
case "downloadPath": case "downloadPath":
printInfo(fmt.Sprintf("Setting for %s -> %s", cmd[1], downloadPath)) printInfo(fmt.Sprintf("Setting for %s -> %s", cmd[1], downloadPath))
case "outputFormat": case "outputFormat":
@ -72,7 +71,7 @@ func loadFromToml() {
if !env { if !env {
configFile = "kbtui.toml" configFile = "kbtui.toml"
} }
printInfoF("Loading config from toml: $TEXT", messageAttachmentColor.stylize(configFile))
config, err := toml.LoadFile(configFile) config, err := toml.LoadFile(configFile)
if err != nil { if err != nil {
printError(fmt.Sprintf("Could not read config file: %+v", err)) printError(fmt.Sprintf("Could not read config file: %+v", err))