You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that we have come so far with the autocomplete functionality for CliRepl, it would be awesome if we leverage that command completion for Node.js CLIs executed in bash.
We could offer a CLI command to get these autocompletions into a shell that would look something like (for a CLI my-cli):
completionsCommand = CliCommand({
name: 'completions',
action() {
return `
# This command is meant to be used as "eval $(my-cli completions)"
command -W ...
`
The text was updated successfully, but these errors were encountered:
carnesen
changed the title
Feature request: Built-in generation of command-line completions
Built-in generation of command-line completions
Jun 2, 2020
Now that we have come so far with the autocomplete functionality for CliRepl, it would be awesome if we leverage that command completion for Node.js CLIs executed in bash.
We could offer a CLI command to get these autocompletions into a shell that would look something like (for a CLI
my-cli
):The user would do:
https://www.gnu.org/software/bash/manual/html_node/Programmable-Completion.html
Personally I still use bash, but probably we could/should do this for other shells too.
The text was updated successfully, but these errors were encountered: