Skip to content
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

CLI arg reorganisation #219

Open
jayvdb opened this issue Mar 23, 2024 · 2 comments
Open

CLI arg reorganisation #219

jayvdb opened this issue Mar 23, 2024 · 2 comments

Comments

@jayvdb
Copy link
Collaborator

jayvdb commented Mar 23, 2024

I am wondering whether it would be reasonable to re-organise the CLI args a bit, hopefully adding more clarity.

Existing CLI args would be supported, but some might be deprecated.

  • db - Operations that configure/touch the database
    • init
    • clear
    • delete
    • migrate
    • rollback
  • migrations - Operations on the existing migrations (excluding "current")
    • list
    • backend (as this hasnt been released yet, the top level "backend" could be removed)
      • add
      • remove
      • list
    • collapse
    • embed? - doesnt really belong here, as it doesnt modify existing migrations)
    • make (make-migration)
    • regenerate
    • detach (detach-migration)
  • rust
    • embed?
  • state (not sure what to call this: operations related to "current" migration and other state files not elsewhere classified)
    • clean
@jayvdb
Copy link
Collaborator Author

jayvdb commented Mar 29, 2024

#230 complicates the separation between migrations and state

@Electron100
Copy link
Owner

I support the idea. Give me another day or two to think about whether I have any strong opinions on the specifics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants