migrateCommands creates the root command for migration-related operations.
(_ *ledgerforgeInstance)
| 32 | |
| 33 | // migrateCommands creates the root command for migration-related operations. |
| 34 | func migrateCommands(_ *ledgerforgeInstance) *cobra.Command { |
| 35 | cmd := &cobra.Command{ |
| 36 | Use: "migrate", |
| 37 | Short: "start ledgerforge migration", |
| 38 | } |
| 39 | |
| 40 | // Add subcommands for migrating up and down. |
| 41 | cmd.AddCommand(migrateUpCommands()) |
| 42 | cmd.AddCommand(migrateDownCommands()) |
| 43 | |
| 44 | return cmd |
| 45 | } |
| 46 | |
| 47 | // migrateUpCommands creates the command for applying migrations. |
| 48 | func migrateUpCommands() *cobra.Command { |
no test coverage detected