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

Loading…
Cancel
Save