NewProjectCommand creates the project command
()
| 32 | |
| 33 | // NewProjectCommand creates the project command |
| 34 | func 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 | |
| 40 | GitHub Projects V2 provides kanban-style project boards for tracking issues, |
| 41 | pull requests, and tasks across repositories. |
| 42 | |
| 43 | This command allows you to create new projects owned by users or organizations |
| 44 | and optionally link them to specific repositories. |
| 45 | |
| 46 | Available 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 |
| 60 | func NewProjectNewCommand() *cobra.Command { |