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

Loading…
Cancel
Save