Automatic shell completion generation

* Add automatic shell completion generation.
Add automatic generation of shell completion scripts for various shells
(the ones supported by `clap_complete`). The scripts can be generated
using the `generate-shell-completion` xtask, which outputs the shell
script to stdout.

* Improve shell completion generation xtask.
General improvements to both the shell completion generation as well as
the xtask package itself. Update the README to match the new additions.
This commit is contained in:
Thomas Frans
2023-03-09 19:02:11 +01:00
committed by GitHub
parent c457efc6fc
commit e8adff444c
6 changed files with 113 additions and 17 deletions

7
.gitignore vendored
View File

@@ -12,5 +12,10 @@ tags
/.vscode/
# Ignore generated manpages
# Ignore generated resources
*.1
misc/_ncspot
misc/ncspot.bash
misc/ncspot.fish
misc/ncspot.elv
misc/_ncspot.ps1