cli/commands/issue/board/board.go

23 lines
718 B
Go

package board
import (
"github.com/spf13/cobra"
"gitlab.com/gitlab-org/cli/commands/cmdutils"
boardCreateCmd "gitlab.com/gitlab-org/cli/commands/issue/board/create"
boardViewCmd "gitlab.com/gitlab-org/cli/commands/issue/board/view"
)
func NewCmdBoard(f *cmdutils.Factory) *cobra.Command {
issueCmd := &cobra.Command{
Use: "board [command] [flags]",
Short: `Work with GitLab Issue Boards in the given project.`,
Long: ``,
}
issueCmd.AddCommand(boardCreateCmd.NewCmdCreate(f))
issueCmd.AddCommand(boardViewCmd.NewCmdView(f))
issueCmd.PersistentFlags().StringP("repo", "R", "", "Select another repository using the OWNER/REPO format or the project ID. Supports group namespaces")
return issueCmd
}