campaigner/cmd/init.go
Miguel de la Cruz 573ea9e136 Add init command
2020-02-29 00:49:55 +01:00

21 lines
378 B
Go

package cmd
import (
"github.com/spf13/cobra"
)
func InitCmd() *cobra.Command {
return &cobra.Command{
Use: "init",
Short: "Creates a new campaign in the current directory",
Args: cobra.NoArgs,
RunE: initCmdF,
}
// add mandatory flags for epic, tags, etc
}
func initCmdF(_ *cobra.Command, _ []string) error {
// creates the campaign.json file
return nil
}