warg
A CLI framework for building command-line interfaces, currently being extended with zsh shell completion. The feature adds tab-completion for subcommands and flags plus customizable suggestions for a flag's values based on the values of previously supplied flags. Implementing it required rearchitecting significant parts of the parsing to keep more state.
What it addresses
CLIs built with the framework lacked shell completion; the author wants to tab through their subcommands and flags and suggest values for the current flag based on previous flags' values.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
warg
A CLI framework for building command-line interfaces, currently being extended with zsh shell completion. The feature adds tab-completion for subcommands and flags plus customizable suggestions for a flag's values based on the values of previously supplied flags. Implementing it required rearchitecting significant parts of the parsing to keep more state.
Problem: CLIs built with the framework lacked shell completion; the author wants to tab through their subcommands and flags and suggest values for the current flag based on previous flags' values.
Posted by @bbkane · Original source ↗
Source text · @bbkane · · Source ↗
I'm adding zsh shell completion to my CLI framework ( https://github.com/bbkane/warg/tree/bbkane/the-flattening-2-split-files )! I'm writing bigger CLIs with it now and I want to tab through their subcommands and flags, as well as allow customization - suggest values for the current flag based on previous flags' values.