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

Various different commands #35

Merged
merged 5 commits into from
Apr 18, 2024
Merged

Various different commands #35

merged 5 commits into from
Apr 18, 2024

Conversation

MadsRC
Copy link
Owner

@MadsRC MadsRC commented Apr 18, 2024

This PR introduces a range of new commands to Sophrosyne.

These commands are intended to help with the day to day running of the application.

The new commands are:

  1. version - Prints the version of Sophrosyne.
  2. config - Prints the config as Sophrosyne would perceive it after all input methods have been applied (config file, env vars, secrets from files etc.)
  3. database upgrade - Upgrade the database using buildin migrations powered by alembic
  4. database downgrade - Downgrade the database using buildin migrations powered by alembic
  5. database show history - Show the history of database migrations
  6. database show current - Show the current database migration revision ID

This fixes issues #21, #18, #17 and #16

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@MadsRC MadsRC merged commit 4bc25fe into main Apr 18, 2024
5 of 6 checks passed
@MadsRC MadsRC deleted the versionCmd branch April 18, 2024 21:04
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

Successfully merging this pull request may close these issues.

1 participant