Remove printSetting switch from cmdSet

This commit is contained in:
2019-10-22 08:45:37 -04:00
parent 8cab261b1d
commit cc917a515f

View File

@ -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) {
}
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":