📝 注释

This commit is contained in:
徐晓伟 2023-11-01 18:06:36 +08:00
parent d157259dba
commit 5dea71b490
4 changed files with 9 additions and 9 deletions

View File

@ -167,7 +167,7 @@ COMMANDS:
job, jobs, j 作业 API中文文档https://docs.gitlab.cn/jh/api/jobs.html
pipeline, pipelines, pl 流水线 API中文文档https://docs.gitlab.cn/jh/api/pipelines.html
project, projects, p 项目 API中文文档https://docs.gitlab.cn/jh/api/projects.html
mix-delete, mix-rm 删除(混合命令)
mix-delete, mix-rm 删除(混合命令,多接口命令
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
@ -445,19 +445,19 @@ COPYRIGHT:
--help, -h show help
```
- 删除(混合命令)
- 删除(混合命令,多接口命令
```shell
$ go run main.go mix-delete --help
NAME:
gitlab-go mix-delete - 删除(混合命令)
gitlab-go mix-delete - 删除(混合命令,多接口命令
USAGE:
gitlab-go mix-delete command [command options] [arguments...]
COMMANDS:
artifact, artifacts 根据项目路径/ID、流水线IID范围删除产物混合命令立即删除
all-artifact, all-artifacts 根据项目路径/ID删除所有产物混合命令立即删除
artifact, artifacts 根据项目路径/ID、流水线IID范围删除产物混合命令多接口命令,立即删除)
all-artifact, all-artifacts 根据项目路径/ID删除所有产物混合命令多接口命令,立即删除)
help, h Shows a list of commands or help for one command
OPTIONS:

View File

@ -15,7 +15,7 @@ func DeleteAllArtifacts() *cli.Command {
return &cli.Command{
Name: "all-artifact",
Aliases: []string{"all-artifacts"},
Usage: "根据项目路径/ID删除所有产物混合命令立即删除)",
Usage: "根据项目路径/ID删除所有产物混合命令多接口命令,立即删除)",
Flags: append(flag.CommonTokenRequired(), flag.Sort(), flag.Page(), flag.PerPage(), flag.Id(true)),
Action: func(context *cli.Context) error {
var baseUrl = context.String(constant.BaseUrl)

View File

@ -17,7 +17,7 @@ func DeleteArtifacts() *cli.Command {
return &cli.Command{
Name: "artifact",
Aliases: []string{"artifacts"},
Usage: "根据项目路径/ID、流水线IID范围删除产物混合命令立即删除)",
Usage: "根据项目路径/ID、流水线IID范围删除产物混合命令多接口命令,立即删除)",
Flags: append(flag.CommonTokenRequired(), flag.Sort(), flag.Page(), flag.PerPage(), flag.Id(true), flag.IIdRange(true)),
Action: func(context *cli.Context) error {
var baseUrl = context.String(constant.BaseUrl)

View File

@ -5,12 +5,12 @@ import (
"github.com/xuxiaowei-com-cn/gitlab-go/flag"
)
// Delete 删除(混合命令
// Delete 删除(混合命令,多接口命令
func Delete() *cli.Command {
return &cli.Command{
Name: "mix-delete",
Aliases: []string{"mix-rm"},
Usage: "删除(混合命令",
Usage: "删除(混合命令,多接口命令",
Flags: append(flag.Common(), flag.Sort(), flag.Page(), flag.PerPage(), flag.Id(false), flag.IIdRange(false)),
Subcommands: []*cli.Command{
DeleteArtifacts(),