fix(cli): don't persist options/args in context

They're overwritten anyway. And leftover state can cause confusion in
sub-sessions.
This commit is contained in:
Henrik Lissner 2022-07-28 19:40:55 +02:00
parent 7eeec53c30
commit 20d5440023
No known key found for this signature in database
GPG Key ID: B60957CA074D39A3

View File

@ -611,8 +611,8 @@ Throws `doom-cli-invalid-option-error' for illegal values."
command ; The full command that led to this context
path ; Breadcrumb list of resolved commands so far
whole ; Unfiltered and unprocessed list of arguments
options ; An alist of (flags . value)
arguments ; An alist of non-subcommand arguments, by command
(options nil :skip t) ; An alist of (flags . value)
(arguments nil :skip t) ; An alist of non-subcommand arguments, by command
(stdin (generate-new-buffer " *doom-cli stdin*") :type buffer) ; buffer containing anything piped into this session
(stdout (generate-new-buffer " *doom-cli stdout*") :type buffer) ; buffer containing user-visible output
(stderr (generate-new-buffer " *doom-cli stderr*") :type buffer) ; buffer containing all output, including debug output