Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* implemented a rough concept for generating shelll completion scripts for a number of common shells * ran cargo fmt * added docstring for completion command and put it in alphabetic order * implemented bash, fish powershell and zsh shell completion suggestions * updated help output in the README.md * updated the catch all case for the shell match and added a docstring for the completion::run function * removed fixed comment * added elvish suggestion * swapped the order of printing the script and printing the suggestion, it now prints the suggestion last * fixed clippy lints * removed rename reference in suggestion text * removed suggestion output * added documentation for shell completion scripts * fixed copied typo * Added extra newline in docs Co-authored-by: Chris Pryer <[email protected]> * added a config command and a completion sub command to that * Deleting forgotten section from the README.md Co-authored-by: Chris Pryer <[email protected]> * moved comment from config struct to the actual command enum * updated file structure * added install and uninstall commands to automatically add shell completion script to init files * Update src/bin/huak/commands/config/completion.rs Co-authored-by: Chris Pryer <[email protected]> * added new line to end of file * removed config from ops * removed config * moved config code to bin * removed (un)install commands and added flags for them on completion instead * added a os dependency on tests * fixed target attribute for tests * made the shell flag only madatory when --install or --uninstall is passed, otherwise huak config completion just prints to stdout * Finalize completion command
- Loading branch information