Scog: Easily generate shell completions for any binary (bash, zsh, fish) (github.com) 4 points by vrmiguel 8mo ago ↗ HN
[–] vrmiguel 8mo ago ↗ Writing shell completions is tough: bash, zsh, and fish each have different, complex syntaxscog aims to solve this: you write one simple YAML file describing your CLI and it generates proper completion scripts for all three shells.It's built on clap's battle tested generators, so you get proven, quality completions without maintaining shell-specific scriptsSuggestions welcome ;)
1 comment
[ 3.1 ms ] story [ 15.2 ms ] threadscog aims to solve this: you write one simple YAML file describing your CLI and it generates proper completion scripts for all three shells.
It's built on clap's battle tested generators, so you get proven, quality completions without maintaining shell-specific scripts
Suggestions welcome ;)