Init: bootstrap go module with basic framework

This commit is contained in:
2025-09-25 08:14:34 +08:00
commit 60f534be1e
47 changed files with 1084 additions and 0 deletions

15
cmd/migrates/init.go Normal file
View File

@@ -0,0 +1,15 @@
package migrates
import (
"github.com/spf13/cobra"
)
var initCmd = &cobra.Command{
Use: "init",
Short: "Initialize migration table",
RunE: func(cmd *cobra.Command, args []string) error {
ctx := cmd.Context()
return migrator.Init(ctx)
},
}