Browse Source

Remove printSetting switch from cmdSet

bugs/edit-cursor
Gregory Rudolph 5 years ago
parent
commit
cc917a515f
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 16
      cmdSet.go

16
cmdSet.go

@ -19,13 +19,7 @@ func init() {
RegisterCommand(command) RegisterCommand(command)
} }
func printSetting(cmd []string) {
func cmdSet(cmd []string) {
if len(cmd) < 2 {
printToView("Feed", "No config value specified")
return
}
if len(cmd) < 3 {
switch cmd[1] { switch cmd[1] {
case "load": case "load":
loadFromToml() loadFromToml()
@ -45,6 +39,14 @@ func cmdSet(cmd []string) {
} }
return return
}
func cmdSet(cmd []string) {
if len(cmd) < 2 {
printToView("Feed", "No config value specified")
return
}
if len(cmd) < 3 {
printSetting(cmd)
} }
switch cmd[1] { switch cmd[1] {
case "downloadPath": case "downloadPath":

Loading…
Cancel
Save