niki/cmd/payment/command/root.go

22 lines
276 B
Go

package command
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: "payment",
Short: "Payment service",
Long: "Payment service CLI",
}
func Execute() {
if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}
}