@hongminhee@hollo.social

Optique 1.3.0 is out. Optique is a type-safe combinatorial CLI parser for TypeScript.

Most of this release closes out a long-running effort to fix dependency sources: parsers that read a value another parser resolved, whether from bindEnv(), bindConfig(), or an interactive prompt. Before 1.3.0, whether that value actually reached its reader depended on which order you declared the two parsers in. It doesn't anymore. derivePromptConfig() builds on that fix, letting one prompt's choices adapt to an answer you gave earlier in the same run, so a package manager prompt can offer different options depending on which framework you just picked.

Two new packages ship alongside it: @optique/keyring reads a password from the OS credential store instead of a config file, and @optique/testing gives you four ways to test an Optique-based CLI without parsing rendered stderr.

https://github.com/dahlia/optique/discussions/963

github.com

Optique 1.3.0: Dependency-aware prompts, an OS keychain fallback, and a testing package · dahlia/optique · Discussion #963

Optique is a type-safe combinatorial CLI parser for TypeScript built from composable parser functions. Parser definitions drive runtime parsing, help and completion output, and the inferred value t...

1 share