MCPcopy Create free account
hub / github.com/github/gh-aw / NewProjectCommand

Function NewProjectCommand

pkg/cli/project_command.go:34–57  ·  view source on GitHub ↗

NewProjectCommand creates the project command

()

Source from the content-addressed store, hash-verified

32
33// NewProjectCommand creates the project command
34func NewProjectCommand() *cobra.Command {
35 cmd := &cobra.Command{
36 Use: "project",
37 Short: "Create GitHub Projects V2 boards",
38 Long: `Create GitHub Projects V2 boards linked to repositories.
39
40GitHub Projects V2 provides kanban-style project boards for tracking issues,
41pull requests, and tasks across repositories.
42
43This command allows you to create new projects owned by users or organizations
44and optionally link them to specific repositories.
45
46Available subcommands:
47 - new - Create a new GitHub Project V2 board`,
48 Example: ` gh aw project new "My Project" --owner @me # Create user project
49 gh aw project new "Team Board" --owner myorg # Create org project
50 gh aw project new "Bugs" --owner myorg --link myorg/myrepo # Create and link to repo`,
51 }
52
53 // Add subcommands
54 cmd.AddCommand(NewProjectNewCommand())
55
56 return cmd
57}
58
59// NewProjectNewCommand creates the "project new" subcommand
60func NewProjectNewCommand() *cobra.Command {

Callers 3

initFunction · 0.92
TestNewProjectCommandFunction · 0.85

Calls 1

NewProjectNewCommandFunction · 0.85

Tested by 2

TestNewProjectCommandFunction · 0.68