mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
25 lines
400 B
Go
25 lines
400 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/formancehq/go-libs/service"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func NewRootCommand() *cobra.Command {
|
|
root := &cobra.Command{
|
|
Use: "webhooks",
|
|
}
|
|
|
|
root.AddCommand(newServeCommand())
|
|
root.AddCommand(newWorkerCommand())
|
|
root.AddCommand(newVersionCommand())
|
|
root.AddCommand(newMigrateCommand())
|
|
|
|
return root
|
|
}
|
|
|
|
func Execute() {
|
|
service.Execute(NewRootCommand())
|
|
}
|