I'm excited to announce Stricli, a brand new #opensource framework for building type-safe, lazy-loaded CLI applications with #TypeScript.
We developed this framework for our internal CLIs at @/TechAtBloomberg, and now we want to share it with the world.
https://bloomberg.github.io/stricli/blog/intro
We developed this framework for our internal CLIs at @/TechAtBloomberg, and now we want to share it with the world.
https://bloomberg.github.io/stricli/blog/intro
Comments
Commands are built in 2 parts (parsing + logic) then linked with ES dynamic imports.
This allows types to flow from the command to the parsing, while remaining decoupled for async lazy loading.
Configure Stricli to parse & validate input to a specified type, so your command implementation stays simple & clean.
There are options for enumerations & default values + automatic help text formatting!
As commands don't need to load implementations, you can load your entire tree of commands & subcommands w/o importing runtime application dependencies.
Now you can bundle apps with any ES module bundler.
Autocomplete was the most demanded feature for our internal CLIs.
#JavaScript engines are fast enough to power completions on-the-fly; Stricli uses this for static & dynamic autocomplete.
https://github.com/bloomberg/stricli
#opensource
Sign up for free here: https://go.bloomberg.com/attend/invite/london-typescript-community-meetup/