2023-10-09 12:51:18 +08:00
|
|
|
|
package boards
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/urfave/cli/v2"
|
|
|
|
|
"github.com/xuxiaowei-com-cn/gitlab-go/flag"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Boards 项目议题板 API https://docs.gitlab.cn/jh/api/boards.html
|
|
|
|
|
func Boards() *cli.Command {
|
|
|
|
|
return &cli.Command{
|
|
|
|
|
Name: "board",
|
|
|
|
|
Aliases: []string{"boards"},
|
|
|
|
|
Usage: "项目议题板 API,中文文档:https://docs.gitlab.cn/jh/api/boards.html",
|
2023-10-17 14:18:38 +08:00
|
|
|
|
Flags: append(flag.Common(), flag.Page(), flag.PerPage(), flag.PrintJson(), flag.PrintTime(),
|
|
|
|
|
flag.Id(false)),
|
2023-10-09 12:51:18 +08:00
|
|
|
|
Subcommands: []*cli.Command{
|
2023-10-17 19:35:26 +08:00
|
|
|
|
List(),
|
2023-10-09 12:51:18 +08:00
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|