shell completion
Freed-Wu opened this issue · 0 comments
Freed-Wu commented
Describe the solution you'd like
A shell completion for common shells (bash, zsh, ...)
Like this:
#compdef cling
local options=(
--errorout"[Do not recover from input errors]"
-help"[Print this help text]"
-L"[Add directory to library search path]:directory:_dirs"
-l"[Load a library before prompt]:library:_files"
--metastr"[Set the meta command tag, default '.']:value"
--nologo"[Do not show startup-banner]"
-noruntime"[Disable runtime support (no null checking, no value printing)]"
-version"[Print the compiler version]"
-v"[Enable verbose output]"
)
_arguments -s $options '*::{service=clang _gcc}'
Describe alternatives you've considered
Like https://github.com/TeX-Live/texdoc/blob/master/script/texdoclib-const.tlu#L53-L75, provide a template, then generate this file from a data struct https://github.com/TeX-Live/texdoc/blob/master/script/texdoclib-const.tlu#L77-L260.