cli/pkg/cmd/repo/license/license.go
Kynan Ware c6c938fafe
Apply suggestions from code review
Co-authored-by: Andy Feller <andyfeller@github.com>
2024-10-11 09:53:33 -06:00

20 lines
467 B
Go

package license
import (
cmdList "github.com/cli/cli/v2/pkg/cmd/repo/license/list"
cmdView "github.com/cli/cli/v2/pkg/cmd/repo/license/view"
"github.com/cli/cli/v2/pkg/cmdutil"
"github.com/spf13/cobra"
)
func NewCmdLicense(f *cmdutil.Factory) *cobra.Command {
cmd := &cobra.Command{
Use: "license <command>",
Short: "Explore repository licenses",
}
cmd.AddCommand(cmdList.NewCmdList(f, nil))
cmd.AddCommand(cmdView.NewCmdView(f, nil))
return cmd
}