Browse Source

Show what config file is being used in load

rudi9719/bugs/editing-nontext-messages
Gregory Rudolph 5 years ago
parent
commit
a083eb3ca6
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 3
      cmdSet.go

3
cmdSet.go

@ -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))

Loading…
Cancel
Save