[mike@mwxm4]
This commit is contained in:
+10
@@ -196,6 +196,15 @@ func runCommandDepth(line string, depth int) bool {
|
||||
}
|
||||
showConfig()
|
||||
|
||||
case "update": // replace this binary with the newest release (-c: only look)
|
||||
run := selfUpdate.install
|
||||
if opt["c"] {
|
||||
run = selfUpdate.check
|
||||
}
|
||||
if err := run(os.Stdout); err != nil {
|
||||
errorln("update: " + err.Error())
|
||||
}
|
||||
|
||||
case "rescan": // reload the configuration and the cached server repo list
|
||||
reloadConfig()
|
||||
rescanServer()
|
||||
@@ -802,6 +811,7 @@ var helpItems = []struct{ cmd, desc string }{
|
||||
{"unalias <name>", "remove an alias"},
|
||||
{"config [-k]", "show effective configuration (-k: list all setting names)"},
|
||||
{"rescan", "reload config and refresh cached server repository list"},
|
||||
{"update [-c]", "update mgsh to the newest release (-c: only look)"},
|
||||
{"!<command>", "run <command> in the shell"},
|
||||
{"quit", "exit mgsh"},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user