-
-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DONT MERGE] [#240] Improve cli ux and add cli example / docs #252
base: master
Are you sure you want to change the base?
Conversation
ieugen
commented
Oct 31, 2023
- BREAKING? Enhanced Store protocol with close alias for disconnect
- BREAKING? connect now returns the store (this)
- create (migration) fn now resolves absolute file path for migration
- Enhanced docs for Store protocol
- CLI can load config from file
- CLI can load config from env
- CLI can load config from cli args
- CLI merges configs in this order: file, env, args
- Added some tests for CLI parsing
- Added status command, to display migration status:
- connection info - so we know which server we are connecting to
- migrations directory - so we know where we get migrations from
- the latest applied migration
- the list of not-applied migrations
- any migrations applied and not present ?!
8907a61
to
fec8a48
Compare
3c3c4b3
to
3af6f4f
Compare
As of now, I don't recommend using this change since migratus migrate applied some down migration in our dev db. |
* BREAKING? Enhanced Store protocol with close alias for disconnect * BREAKING? connect now returns the store (this) * create (migration) fn now resolves absolute file path for migration * Enhanced docs for Store protocol * CLI can load config from file * CLI can load config from env * CLI can load config from cli args * CLI merges configs in this order: file, env, args * Added some tests for CLI parsing * Added status command, to display migration status: - connection info - so we know which server we are connecting to - migrations directory - so we know where we get migrations from - the latest applied migration - the list of not-applied migrations - any migrations applied and not present ?!
* Implemnted status command that works mostly like list
Overall looks good, ping me when you feel it's good to merge. |
Hi, It's not done yet. I plan to move to https://github.com/lambdaisland/cli . I also plan to do some thorough testing in a project. |
Oh yeah moving to |