[mike@mwxm4]

This commit is contained in:
2026-08-11 15:07:21 +02:00
parent 39f5b48d94
commit 682ac2a4a4
8 changed files with 797 additions and 2 deletions
+10
View File
@@ -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"},
}