octolab/breakit

View on GitHub
internal/cmd/root.go

Summary

Maintainability
A
0 mins
Test Coverage
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
}