MCPcopy Create free account
hub / github.com/cli/cli / NewCmdGitIgnore

Function NewCmdGitIgnore

pkg/cmd/repo/gitignore/gitignore.go:10–20  ·  view source on GitHub ↗
(f *cmdutil.Factory)

Source from the content-addressed store, hash-verified

8)
9
10func NewCmdGitIgnore(f *cmdutil.Factory) *cobra.Command {
11 cmd := &cobra.Command{
12 Use: "gitignore <command>",
13 Short: "List and view available repository gitignore templates",
14 }
15
16 cmd.AddCommand(cmdList.NewCmdList(f, nil))
17 cmd.AddCommand(cmdView.NewCmdView(f, nil))
18
19 return cmd
20}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected