remember commands even if failed

This commit is contained in:
Chris Lu 2021-09-08 15:55:19 -07:00
parent 0207f5fe9b
commit 0b4269b6a8

View file

@ -84,10 +84,12 @@ https://cloud.seaweedfs.com/ui/%s
func processEachCmd(reg *regexp.Regexp, cmd string, commandEnv *CommandEnv) bool {
cmds := reg.FindAllString(cmd, -1)
line.AppendHistory(cmd)
if len(cmds) == 0 {
return false
} else {
line.AppendHistory(cmd)
args := make([]string, len(cmds[1:]))