From 0a8b3a0e59747078c0131bd0896266e3926bedca Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Sat, 29 Feb 2020 00:59:54 +0100 Subject: [PATCH] Add add cmd structure --- cmd/add.go | 20 ++++++++++++++++++++ cmd/root.go | 1 + 2 files changed, 21 insertions(+) create mode 100644 cmd/add.go diff --git a/cmd/add.go b/cmd/add.go new file mode 100644 index 0000000..c1f43f5 --- /dev/null +++ b/cmd/add.go @@ -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 +} diff --git a/cmd/root.go b/cmd/root.go index d5a4219..cc2e9d9 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -14,6 +14,7 @@ func RootCmd() *cobra.Command { } cmd.AddCommand( + AddCmd(), InitCmd(), TokenCmd(), )