-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Completions): one can generate a basic fish completions script a…
…t compile time The following completion would happen (using example 17_yaml.rs): ``` $ prog <tab> help subcmd ``` ``` $ prog -<tab><tab> --help -h (Prints help information) --max-vals (you can only supply a max of 3 values for me!) --min-vals (you must supply at least two values to satisfy me) --mode (shows an option with specific values) --mult-vals (demos an option which has two named values) --option -o (example option argument from yaml) --version -V (Prints version information) -F (demo flag argument) ``` ``` $ prog --<tab><tab> --help -h (Prints help information) --max-vals (you can only supply a max of 3 values for me!) --min-vals (you must supply at least two values to satisfy me) --mode (shows an option with specific values) --mult-vals (demos an option which has two named values) --option -o (example option argument from yaml) --version -V (Prints version information) ``` ``` $ prog --mode <tab> emacs (shows an option with specific values) vi (shows an option with specific values) ``` ``` $ prog subcmd -<tab> --help -h (Prints help information) -B (example subcommand option) --version -V (Prints version information) ``` ``` $ prog subcmd --<tab> --help (Prints help information) --version (Prints version information) ``` Close #578
- Loading branch information
Showing
3 changed files
with
133 additions
and
3 deletions.
There are no files selected for viewing
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