mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
30 lines
489 B
Go
30 lines
489 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/formancehq/go-libs/service"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var (
|
|
ServiceName = "wallets"
|
|
Version = "develop"
|
|
BuildDate = "-"
|
|
Commit = "-"
|
|
)
|
|
|
|
func NewRootCommand() *cobra.Command {
|
|
cmd := &cobra.Command{}
|
|
|
|
cobra.EnableTraverseRunHooks = true
|
|
|
|
cmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
|
|
serverCmd := newServeCommand()
|
|
cmd.AddCommand(serverCmd)
|
|
return cmd
|
|
}
|
|
|
|
func Execute() {
|
|
service.Execute(NewRootCommand())
|
|
}
|