SeedCompany / cord-api-v3

Bible translation project management API
MIT License
18 stars 4 forks source link

clipanion ← commander / nestjs-console #3128

Closed CarsonF closed 5 months ago

CarsonF commented 5 months ago

This replaces the nestjs-console library, which is a wrapper for commander, with clipanion library. The former was not type safe, and functionality was limited to whatever the wrapper library exposed.

clipanion is type safe. The big change here, is each command is its own class. Since class fields are used to configure the command in a type safe way.

Command discovery and DI were trivial, so I just did them myself.

This library is better at exposing command proxies as well which I'll use in #3121.