mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
18 lines
365 B
Go
18 lines
365 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/formancehq/stack/libs/go-libs/bun/bunconnect"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func NewDatabaseCommand() *cobra.Command {
|
|
ret := &cobra.Command{
|
|
Use: "db",
|
|
Short: "Handle databases operations",
|
|
}
|
|
ret.AddCommand(NewDatabaseCreateCommand(), NewDatabaseDropCommand())
|
|
bunconnect.InitFlags(ret.PersistentFlags())
|
|
|
|
return ret
|
|
}
|