Add add cmd structure

This commit is contained in:
Miguel de la Cruz 2020-02-29 00:59:54 +01:00
parent 573ea9e136
commit 0a8b3a0e59
2 changed files with 21 additions and 0 deletions

20
cmd/add.go Normal file
View file

@ -0,0 +1,20 @@
package cmd
import (
"github.com/spf13/cobra"
)
func AddCmd() *cobra.Command {
return &cobra.Command{
Use: "add",
Short: "Adds tickets to the campaign",
Args: cobra.NoArgs,
RunE: addCmdF,
}
// add flags and examples
}
func addCmdF(_ *cobra.Command, _ []string) error {
return nil
}

View file

@ -14,6 +14,7 @@ func RootCmd() *cobra.Command {
} }
cmd.AddCommand( cmd.AddCommand(
AddCmd(),
InitCmd(), InitCmd(),
TokenCmd(), TokenCmd(),
) )