Package Exports
- @oclif/plugin-autocomplete/lib/commands/autocomplete
- @oclif/plugin-autocomplete/lib/commands/autocomplete/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@oclif/plugin-autocomplete) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@oclif/plugin-autocomplete
autocomplete plugin for oclif (bash, zsh and powershell)
Usage
Run <cli> autocomplete
to generate the autocomplete files for your current shell.
Topic separator
Since oclif v2 it's possible to use spaces as a topic separator in addition to colons.
For bash and zsh each topic separator has different autocomplete implementations, if the CLI supports using a space as the separator, plugin-autocomplete will generate completion for that topic.
If you still want to use the colon-separated autocomplete you can set OCLIF_AUTOCOMPLETE_TOPIC_SEPARATOR
to colon
and re-generate the autocomplete files.
Docs: https://oclif.io/docs/topic_separator
Commands
oclif-example autocomplete [SHELL]
display autocomplete installation instructions
USAGE
$ oclif-example autocomplete [SHELL] [-r]
ARGUMENTS
SHELL (zsh|bash|powershell) Shell type
FLAGS
-r, --refresh-cache Refresh cache (ignores displaying instructions)
DESCRIPTION
display autocomplete installation instructions
EXAMPLES
$ oclif-example autocomplete
$ oclif-example autocomplete bash
$ oclif-example autocomplete zsh
$ oclif-example autocomplete powershell
$ oclif-example autocomplete --refresh-cache
See code: src/commands/autocomplete/index.ts