deluan / contentful-migrate

🐎 Schema migration tooling for Contentful, with state management
https://www.contentful.com/blog/2018/09/13/content-model-changes-scale-telus-cms-as-code/
MIT License
60 stars 37 forks source link

refactor(cli): uses yargs instead of commander #2

Closed deluan closed 6 years ago

deluan commented 6 years ago

Note that the order of the commands in the help msgs changed, because now they're being loaded dynamically. Is it worth to keep the old order?

If that's what we want, there are two solutions: 1) add a number in front of all command files, like:

   0-bootstrap.js
   1-init.js
   ...

2) load the command files one by one using command(), and not commandDir()