mirror of
https://github.com/hanzo-fi/webhooks.git
synced 2026-10-30 20:32:55 +00:00
25 lines
403 B
Go
25 lines
403 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/formancehq/go-libs/v2/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())
|
|
}
|