mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-01 05:27:45 +00:00
uutils: enable shell completions
This adds a hidden `completion` subcommand to coreutils. When invoked with `coreutils completion <utility> <shell>` a completion file will be printed to stdout. When running `make install` those files will be created for all utilities and copied to the appropriate locations. `make install` will install completions for zsh, fish and bash; however, clap also supports generating completions for powershell and elvish. With this patch all utilities are required to have a publich uu_app function that returns a clap::App in addition to the uumain function.
This commit is contained in:
parent
0531153fa6
commit
a9e79c72c7
5 changed files with 76 additions and 23 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -218,6 +218,7 @@ version = "0.0.6"
|
|||
dependencies = [
|
||||
"atty",
|
||||
"chrono",
|
||||
"clap",
|
||||
"conv",
|
||||
"filetime",
|
||||
"glob 0.3.0",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue