mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
d50eeea114
1. Split the oversized `cmd/agent` entrypoint into a multi-file package and update dev/build scripts to use the package path instead of compiling `main.go` directly. 2. Add a new `memoh` terminal UI for local bot chat, with Bubble Tea
15 lines
318 B
Go
15 lines
318 B
Go
package main
|
|
|
|
import "github.com/spf13/cobra"
|
|
|
|
func newMigrateCommand() *cobra.Command {
|
|
return &cobra.Command{
|
|
Use: "migrate <up|down|version|force N>",
|
|
Short: "Run database migrations",
|
|
Args: cobra.MinimumNArgs(1),
|
|
RunE: func(_ *cobra.Command, args []string) error {
|
|
return runMigrate(args)
|
|
},
|
|
}
|
|
}
|