|
|
|
@ -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() |
|
|
|
@ -46,6 +40,14 @@ func cmdSet(cmd []string) {
@@ -46,6 +40,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": |
|
|
|
|
if len(cmd) != 3 { |
|
|
|
|