Add cobra root command
This commit is contained in:
parent
54902edaf4
commit
c291c97cb2
64 changed files with 9722 additions and 2 deletions
19
cmd/root.go
Normal file
19
cmd/root.go
Normal file
|
@ -0,0 +1,19 @@
|
|||
package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var RootCmd = &cobra.Command{
|
||||
Use: "campaigner",
|
||||
Short: "Create and manage Open Source campaigns",
|
||||
}
|
||||
|
||||
func Execute() {
|
||||
if err := RootCmd.Execute(); err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue