Adds default for unknown commands
This commit is contained in:
parent
07167998ab
commit
1a1904d943
1 changed files with 6 additions and 0 deletions
|
|
@ -144,6 +144,12 @@ func Repl(h *graph.Handle, queryLanguage string, cfg *config.Config) error {
|
||||||
}
|
}
|
||||||
h.QuadWriter.RemoveQuad(quad)
|
h.QuadWriter.RemoveQuad(quad)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
default:
|
||||||
|
if command[0] == ':' {
|
||||||
|
fmt.Printf("Unknown command: %q\n", command)
|
||||||
|
continue
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue