Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shell completion #488

Open
Freed-Wu opened this issue Feb 20, 2023 · 0 comments
Open

shell completion #488

Freed-Wu opened this issue Feb 20, 2023 · 0 comments

Comments

@Freed-Wu
Copy link

Freed-Wu commented Feb 20, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant