Skip to content

Ragnoroct/shcompcomp

Repository files navigation

shcompcomp

Generate command completion scripts using simple configs

supported shells

  • bash

Examples

List of options

shcomp2 - > ~/.bash_completion.d/examplecli.bash <<EOF
cfg cli_name=examplecli
opt --help
opt -h
EOF

# behavior
--help -h
$ examplecli [TAB]
-h
$ examplecli --help [TAB]

Positional with choices

shcomp2 - > ~/.bash_completion.d/examplecli.bash <<EOF
cfg cli_name=examplecli
pos --choices="do_thing do_other nothing"
EOF

# behavior
do_thing do_other nothing
$ examplecli [TAB]
do_thing do_other
$ examplecli do_ [TAB]

About

Shell completion script compiler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published