Unverified Commit ce0c95d0 authored by lulz's avatar lulz Committed by GitHub
Browse files

[fix] /bye and /exit are now treated as prefixes (#2381)



* [fix] /bye and /exit are now treated as prefixes
instead of being treated as entire lines which doesn't align with the way the rest of the commands are treated

* Update cmd/interactive.go

Fixing whitespace

---------
Co-authored-by: default avatarJeffrey Morgan <jmorganca@gmail.com>
parent a9bc1e1c
......@@ -470,7 +470,7 @@ func generateInteractive(cmd *cobra.Command, opts runOptions) error {
} else {
usage()
}
case line == "/exit", line == "/bye":
case strings.HasPrefix(line, "/exit"), strings.HasPrefix(line, "/bye"):
return nil
case strings.HasPrefix(line, "/"):
args := strings.Fields(line)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment