4sh / datamaintain

One tool to maintain all your database schemas!
Apache License 2.0
25 stars 6 forks source link

Move mongo-shell CLI option to the base CLI command #215

Open Lysoun opened 1 year ago

Lysoun commented 1 year ago

Currently: The mongo-shell option is only available in the subcommand update-db. The two other commands, list and mark-one-script-as-executed can't use a specified mongo shell, they only use the default shell, which is mongosh.

Expected:

⚠️ This could break the tests in MongoIT and many CLI tests because of the order of the arguments. To run the MongoIT tests, you could need both versions of mongo shell, mongo and mongosh