francescov1 / mongoose-tsgen

A plug-n-play Typescript generator for Mongoose.
102 stars 24 forks source link

refactor: upgrade oclif #112

Closed forivall closed 1 year ago

forivall commented 1 year ago

the newest version of oclif has significant changes, so it took some experimentation to get this to work right. for example, they broke the help flag. They fixed that quickly! But i still need a custom help flag since the builtin help flag requires the full command configuration.

francescov1 commented 1 year ago

Hi @forivall ,

I did some testing and found one small issue. If MODEL_PATH is omitted, the CLI tool automatically searches for mongoose models in the current directory. With your PR, an error is thrown if MODEL_PATH is omitted