Add add cmd structure
This commit is contained in:
parent
573ea9e136
commit
0a8b3a0e59
2 changed files with 21 additions and 0 deletions
20
cmd/add.go
Normal file
20
cmd/add.go
Normal 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
|
||||
}
|
|
@ -14,6 +14,7 @@ func RootCmd() *cobra.Command {
|
|||
}
|
||||
|
||||
cmd.AddCommand(
|
||||
AddCmd(),
|
||||
InitCmd(),
|
||||
TokenCmd(),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue