internal/cmd/root.go
package cmd
import "github.com/spf13/cobra"
// New returns the new root command.
func New() *cobra.Command {
command := cobra.Command{
Use: "%template%",
Short: "%template%",
Long: "%template%",
Args: cobra.NoArgs,
SilenceErrors: false,
SilenceUsage: true,
}
/* configure instance */
command.AddCommand( /* related commands */ )
return &command
}