Skip to main content

Module migrate

Module migrate 

Source
Expand description

Migration CLI command for checking and applying config/file migrations.

Responsibilities:

  • Provide CLI interface for migration operations (check, list, apply).
  • Display migration status to users in a readable format.
  • Handle user confirmation for destructive operations.

Not handled here:

  • Migration implementation logic (see crate::migration).
  • Migration history persistence (see crate::migration::history).

Invariants/assumptions:

  • Requires a valid Ralph project (with .ralph directory).
  • --apply requires explicit user action (not automatic).
  • Exit code 1 from --check when migrations are pending for CI integration.

Structs§

MigrateArgs

Enums§

MigrateCommand

Functions§

handle_migrate
Handle the migrate command.