A common use of go-prompt is adding autocompletion to CLIs. Occasionally, a CLI will want to autocomplete an argument or flag value with special characters. Right now, rendering these values to the terminal causes syntax errors.
A new option should be created, such that when added to a prompt:
Characters such as $ are escaped before rendering.
Strings containing spaces are surrounded with quotes.
Feature Request
A common use of
go-prompt
is adding autocompletion to CLIs. Occasionally, a CLI will want to autocomplete an argument or flag value with special characters. Right now, rendering these values to the terminal causes syntax errors.A new option should be created, such that when added to a prompt:
$
are escaped before rendering.