Files
stack/ee/wallets/cmd/root.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())
}