Fixes #261 -- Quit repl when user types "exit"
This commit is contained in:
parent
41f1a2b9a9
commit
74c7c6bfa5
1 changed files with 4 additions and 0 deletions
|
|
@ -160,6 +160,10 @@ func Repl(h *graph.Handle, queryLanguage string, cfg *config.Config) error {
|
|||
h.QuadWriter.RemoveQuad(quad)
|
||||
continue
|
||||
|
||||
case "exit":
|
||||
term.Close()
|
||||
os.Exit(0)
|
||||
|
||||
default:
|
||||
if cmd[0] == ':' {
|
||||
fmt.Printf("Unknown command: %q\n", cmd)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue