cli/pkg/cmd/label/label.go

22 lines
534 B
Go

package label
import (
labelCreateCmd "github.com/cli/cli/v2/pkg/cmd/label/create"
labelListCmd "github.com/cli/cli/v2/pkg/cmd/label/list"
"github.com/cli/cli/v2/pkg/cmdutil"
"github.com/spf13/cobra"
)
func NewCmdLabel(f *cmdutil.Factory) *cobra.Command {
cmd := &cobra.Command{
Use: "label <command>",
Short: "Manage labels",
Long: `Work with GitHub labels.`,
}
cmdutil.EnableRepoOverride(cmd, f)
cmd.AddCommand(labelListCmd.NewCmdList(f, nil))
cmd.AddCommand(labelCreateCmd.NewCmdCreate(f, nil))
return cmd
}