go-prompt
go-prompt copied to clipboard
added new InputWithExit api to indicate when an exit was requested
The idea here is to allow a bit finer grained control over the Input
function without disturbing the current API. When using go-prompt
in a custom REPL it's useful to know when something like CTRL+D
was pressed so that the loop can terminate, since there's no way to distinguish between empty input ""
and an exit request. For your consideration.