campaigner/cmd/root.go
2020-02-29 00:02:56 +01:00

27 lines
349 B
Go

package cmd
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
func RootCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "campaigner",
Short: "Create and manage Open Source campaigns",
}
cmd.AddCommand(
TokenCmd(),
)
return cmd
}
func Execute() {
if err := RootCmd().Execute(); err != nil {
fmt.Fprintln(os.Stderr, err)
}
}