finalizeevent hook that is emitted before applying defaults and filling
parseevent payload and all argument and option callbacks.
callbackparameter that is fired as soon as the parser finds the command.
Parsernow extends a
HookEmitterand is linked to the
CLIinstance to decouple the
_to end of parser chain so that option callbacks have the ability to modify the contexts and continue parsing.
generateKey()to support multiple sequential escape sequences.
ansi.split()to break a string up by ANSI escape sequences.
CLIinstanced styles to help template rendering.
Terminaland not if some other logic listens on stdin.
--versionto work properly.
keypressevent listeners were not properly being wired up to
stdinresulting in the listener not being removed after being fired once.
generateHelphook event in v1.3.0 when generated JSON object is stringified.
showHelpflag on thrown errors to override
showHelpOnError. Defaults to
true. This still requires
helpto be enabled.
errorstyle for help template and server mode error handling.
stylespassed into the
CLIconstructor as well as the
:wasn't styled and whitespace was being trimmed.
parsehook event was being omitted from the cloned context which is not accessible instead of the originating
Extensionobjects were passed by reference.
WriteStreamto improve compatibility with packages that check
isTTYand terminal helper functions such as
CLI.connect()with default of 5 seconds.
CLI.connect()now waits for terminal resize handshake to complete before resolving.
keypressansi sequence for improved raw input handling in server mode.
execansi sequence to explicitly run a command and differentiate between running a command and stdin input.
CLIproperties to context init so that help in server mode can render properly.
--versioncallback would show version if
next()returned a truthy value instead of
truesince this option is a flag.