📝 注释
This commit is contained in:
parent
d157259dba
commit
5dea71b490
10
README.md
10
README.md
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue