feat: add migrate cmd

This commit is contained in:
Rogee
2024-12-19 14:22:50 +08:00
parent b68316a778
commit 0660dbed0e
7 changed files with 284 additions and 8 deletions

View File

@@ -12,7 +12,14 @@ func main() {
Short: "atom framework command line tool",
}
cmd.CommandNew(rootCmd)
cmds := []func(*cobra.Command){
cmd.CommandNew,
cmd.CommandMigrate,
}
for _, c := range cmds {
c(rootCmd)
}
if err := rootCmd.Execute(); err != nil {
log.Fatal(err)