Stricli | Stricli

submited by
Style Pass
2024-10-01 21:00:07

TypeScript types for command named flags and positional arguments are defined once and then flow through the entire application.

Stricli is a self-contained command line parser that has no runtime dependencies. This is due to the powerful, yet strictly limited scope of supported features.

Command implementations are defined separately from their parameters, allowing for async imports and code splitting with ESM build tools. Run --help without ever importing a single runtime dependency.

All system access is encapsulated in a single context object which allows for easier dependency injection and mocking for unit tests.

Leave a Comment
Related Posts