MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / migrateCommands

Function migrateCommands

cmd/migrate.go:34–45  ·  view source on GitHub ↗

migrateCommands creates the root command for migration-related operations.

(_ *ledgerforgeInstance)

Source from the content-addressed store, hash-verified

32
33// migrateCommands creates the root command for migration-related operations.
34func 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.
48func migrateUpCommands() *cobra.Command {

Callers 1

NewCLIFunction · 0.85

Calls 2

migrateUpCommandsFunction · 0.85
migrateDownCommandsFunction · 0.85

Tested by

no test coverage detected