mirror of
https://github.com/zu1k/nali.git
synced 2025-01-22 21:29:02 +08:00
fix: quit & exit should exit nali
Signed-off-by: zu1k <i@zu1k.com>
This commit is contained in:
parent
ed0fe1d8ed
commit
60bab5e13b
@ -70,7 +70,7 @@ Find document on: https://github.com/zu1k/nali
|
|||||||
if gbk {
|
if gbk {
|
||||||
line, _, _ = transform.String(simplifiedchinese.GBK.NewDecoder(), line)
|
line, _, _ = transform.String(simplifiedchinese.GBK.NewDecoder(), line)
|
||||||
}
|
}
|
||||||
if line == "quit" || line == "exit" {
|
if line := strings.TrimSpace(line); line == "quit" || line == "exit" {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
_, _ = fmt.Fprintf(color.Output, "%s", entity.ParseLine(line).ColorString())
|
_, _ = fmt.Fprintf(color.Output, "%s", entity.ParseLine(line).ColorString())
|
||||||
|
Loading…
Reference in New Issue
Block a user