-
Notifications
You must be signed in to change notification settings - Fork 532
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(build-cli): Add autocomplete support for bash and zsh (#12748)
Adds an `autocomplete` command to flub which can be used to generate autocomplete config for bash and zsh. This is provided "for free" by using [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete). fish is not supported, but possibly could be with this PR: oclif/plugin-autocomplete#38 We could either wait for the feature to come, release a custom plugin with that PR in the meantime, or open our own PR to add it.
- Loading branch information
1 parent
b34ebd9
commit 429840d
Showing
6 changed files
with
193 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
`flub autocomplete` | ||
=================== | ||
|
||
display autocomplete installation instructions | ||
|
||
* [`flub autocomplete [SHELL]`](#flub-autocomplete-shell) | ||
|
||
## `flub autocomplete [SHELL]` | ||
|
||
display autocomplete installation instructions | ||
|
||
``` | ||
USAGE | ||
$ flub autocomplete [SHELL] [-r] | ||
ARGUMENTS | ||
SHELL shell type | ||
FLAGS | ||
-r, --refresh-cache Refresh cache (ignores displaying instructions) | ||
DESCRIPTION | ||
display autocomplete installation instructions | ||
EXAMPLES | ||
$ flub autocomplete | ||
$ flub autocomplete bash | ||
$ flub autocomplete zsh | ||
$ flub autocomplete --refresh-cache | ||
``` | ||
|
||
_See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v1.3.5/src/commands/autocomplete/index.ts)_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters