Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

fix: accept comands with leading and trailing white spaces (#1200) #1202

Merged
merged 1 commit into from
Oct 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cmd/dm-ctl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ func loop() {
}
continue
}

line = strings.TrimSpace(line)
if line == "exit" {
os.Exit(0)
} else if line == "" {
Expand Down