cli/pkg/cmd/repo/gitignore/gitignore.go
Kynan Ware 34d1fb3e63 Add godoc comments to exported symbols in pkg/cmd/repo
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-04 15:53:48 -07:00

21 lines
579 B
Go

package gitignore
import (
cmdList "github.com/cli/cli/v2/pkg/cmd/repo/gitignore/list"
cmdView "github.com/cli/cli/v2/pkg/cmd/repo/gitignore/view"
"github.com/cli/cli/v2/pkg/cmdutil"
"github.com/spf13/cobra"
)
// NewCmdGitIgnore creates a new command for managing gitignore templates.
func NewCmdGitIgnore(f *cmdutil.Factory) *cobra.Command {
cmd := &cobra.Command{
Use: "gitignore <command>",
Short: "List and view available repository gitignore templates",
}
cmd.AddCommand(cmdList.NewCmdList(f, nil))
cmd.AddCommand(cmdView.NewCmdView(f, nil))
return cmd
}