Skip to content

add migration status command - #30

Merged
jaemk merged 3 commits into
mainfrom
260719.status-command
Jul 19, 2026
Merged

jaemk merged 3 commits into
mainfrom
260719.status-command

Conversation

@jaemk

@jaemk jaemk commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Add a status command and fill a spec gap.

Added

  • migrant status [--format <text|json>] reports every managed migration's applied/pending state with summary counts (total/applied/pending). --format text (the default) prints a summary line plus a [✓]/[ ] row per migration; --format json prints { total, applied, pending, migrations: [{ tag, applied }] } for scripting. Resolves Add command to show table schemas #4.

Other

  • Render the report through a serializable StatusReport in src/status.rs, so both formats are unit-testable without a database; add an integration test.
  • Document the existing SettingsFileInitializer (owned-self setters, initialize()) in the library spec.

jaemk added 3 commits July 19, 2026 14:45
- `migrant status [--format <text|json>]` reports every managed migration's
  applied/pending state with summary counts, as pretty text (default) or JSON
- render via a serializable report in `src/status.rs`, unit + integration tested
- document the `SettingsFileInitializer` in the library spec
@jaemk
jaemk merged commit 4ea7e44 into main Jul 19, 2026
5 checks passed
@jaemk
jaemk deleted the 260719.status-command branch July 27, 2026 00:49
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.

Add command to show table schemas

1 participant