Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
徐晓伟工作室
gitlab-go
提交
930ec131
G
gitlab-go
项目概览
徐晓伟工作室
/
gitlab-go
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-go
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
930ec131
编写于
10月 05, 2023
作者:
徐晓伟
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
🎨
fix topic
上级
c09b14ad
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
35 addition
and
35 deletion
+35
-35
README.md
README.md
+26
-26
job_artifacts/job_artifacts.go
job_artifacts/job_artifacts.go
+3
-3
jobs/jobs.go
jobs/jobs.go
+2
-2
pipelines/pipelines.go
pipelines/pipelines.go
+2
-2
projects/projects.go
projects/projects.go
+2
-2
未找到文件。
README.md
浏览文件 @
930ec131
...
...
@@ -152,26 +152,26 @@ VERSION:
dev
COMMANDS:
project
s, p
项目 API,中文文档:https://docs.gitlab.cn/jh/api/projects.html
pipeline
s, pl
流水线 API,中文文档:https://docs.gitlab.cn/jh/api/pipelines.html
job
s
, j
作业 API,中文文档:https://docs.gitlab.cn/jh/api/jobs.html
job-artifacts, ja 作业产物 API,中文文档:https://docs.gitlab.cn/jh/api/job_artifacts.html
help
, h Shows a list of commands or
help
for
one
command
project
, projects, p
项目 API,中文文档:https://docs.gitlab.cn/jh/api/projects.html
pipeline
, pipelines, pl
流水线 API,中文文档:https://docs.gitlab.cn/jh/api/pipelines.html
job
,
jobs
, j
作业 API,中文文档:https://docs.gitlab.cn/jh/api/jobs.html
job-artifact
, job-artifact
s, ja 作业产物 API,中文文档:https://docs.gitlab.cn/jh/api/job_artifacts.html
help
, h
Shows a list of commands or
help
for
one
command
GLOBAL OPTIONS:
--help
,
-h
show
help
--version
,
-v
print the version
```
-
[
project
s
- 项目 API
](
https://docs.gitlab.cn/jh/api/projects.html
)
-
[
project - 项目 API
](
https://docs.gitlab.cn/jh/api/projects.html
)
```shell
$ go run main.go project
s
--help
$ go run main.go project --help
NAME:
gitlab-go project
s
- 项目 API,中文文档:https://docs.gitlab.cn/jh/api/projects.html
gitlab-go project - 项目 API,中文文档:https://docs.gitlab.cn/jh/api/projects.html
USAGE:
gitlab-go project
s
command [command options] [arguments...]
gitlab-go project command [command options] [arguments...]
COMMANDS:
list 列出所有项目
...
...
@@ -184,15 +184,15 @@ GLOBAL OPTIONS:
--help, -h show help
```
-
[
pipeline
s
- 流水线 API
](
https://docs.gitlab.cn/jh/api/pipelines.html
)
-
[
pipeline - 流水线 API
](
https://docs.gitlab.cn/jh/api/pipelines.html
)
```shell
$ go run main.go pipeline
s
--help
$ go run main.go pipeline --help
NAME:
gitlab-go pipeline
s
- 流水线 API,中文文档:https://docs.gitlab.cn/jh/api/pipelines.html
gitlab-go pipeline - 流水线 API,中文文档:https://docs.gitlab.cn/jh/api/pipelines.html
USAGE:
gitlab-go pipeline
s
command [command options] [arguments...]
gitlab-go pipeline command [command options] [arguments...]
COMMANDS:
list 列出项目流水线
...
...
@@ -206,15 +206,15 @@ GLOBAL OPTIONS:
--help, -h show help
```
-
[
job
s
- 作业 API
](
https://docs.gitlab.cn/jh/api/jobs.html
)
-
[
job - 作业 API
](
https://docs.gitlab.cn/jh/api/jobs.html
)
```shell
$ go run main.go job
s
--help
$ go run main.go job --help
NAME:
gitlab-go job
s
- 作业 API,中文文档:https://docs.gitlab.cn/jh/api/jobs.html
gitlab-go job - 作业 API,中文文档:https://docs.gitlab.cn/jh/api/jobs.html
USAGE:
gitlab-go job
s
command [command options] [arguments...]
gitlab-go job command [command options] [arguments...]
COMMANDS:
list 列出项目作业
...
...
@@ -227,22 +227,22 @@ GLOBAL OPTIONS:
--help, -h show help
```
-
[
job-artifact
s
- 作业产物 API
](
https://docs.gitlab.cn/jh/api/job_artifacts.html
)
-
[
job-artifact - 作业产物 API
](
https://docs.gitlab.cn/jh/api/job_artifacts.html
)
```shell
$ go run main.go job-artifact
s
--help
$ go run main.go job-artifact --help
NAME:
gitlab-go job-artifact
s
- 作业产物 API,中文文档:https://docs.gitlab.cn/jh/api/job_artifacts.html
gitlab-go job-artifact - 作业产物 API,中文文档:https://docs.gitlab.cn/jh/api/job_artifacts.html
USAGE:
gitlab-go job-artifact
s
command [command options] [arguments...]
gitlab-go job-artifact command [command options] [arguments...]
COMMANDS:
get 获取作业产物(未完成)
download, dl 下载产物归档文件(未完成)
delete, rm 删除作业产物
delete-project, rm-p 删除项目产物
help, h Shows a list of commands or help for one command
get
获取作业产物(未完成)
download, dl
下载产物归档文件(未完成)
delete, rm
删除作业产物
delete-project,
delete-projects,
rm-p 删除项目产物
help, h
Shows a list of commands or help for one command
OPTIONS:
--base-url value 实例地址,例如:https://gitlab.xuxiaowei.com.cn/api/v4 (default: "https://gitlab.com/api/v4") [%CI_API_V4_URL%]
...
...
job_artifacts/job_artifacts.go
浏览文件 @
930ec131
...
...
@@ -13,8 +13,8 @@ import (
// JobsArtifacts 作业产物 API https://docs.gitlab.cn/jh/api/job_artifacts.html
func
JobsArtifacts
()
*
cli
.
Command
{
return
&
cli
.
Command
{
Name
:
"job-artifact
s
"
,
Aliases
:
[]
string
{
"ja"
},
Name
:
"job-artifact"
,
Aliases
:
[]
string
{
"j
ob-artifacts"
,
"j
a"
},
Usage
:
"作业产物 API,中文文档:https://docs.gitlab.cn/jh/api/job_artifacts.html"
,
Flags
:
append
(
flag
.
Common
(),
flag
.
Id
(
false
),
flag
.
JobId
(
false
)),
Subcommands
:
[]
*
cli
.
Command
{
...
...
@@ -67,7 +67,7 @@ func JobsArtifacts() *cli.Command {
},
{
Name
:
"delete-project"
,
Aliases
:
[]
string
{
"rm-p"
},
Aliases
:
[]
string
{
"
delete-projects"
,
"
rm-p"
},
Usage
:
"删除项目产物"
,
Flags
:
append
(
flag
.
Common
(),
flag
.
Id
(
true
)),
Action
:
func
(
context
*
cli
.
Context
)
error
{
...
...
jobs/jobs.go
浏览文件 @
930ec131
...
...
@@ -11,8 +11,8 @@ import (
// Jobs 作业 API https://docs.gitlab.cn/jh/api/jobs.html
func
Jobs
()
*
cli
.
Command
{
return
&
cli
.
Command
{
Name
:
"job
s
"
,
Aliases
:
[]
string
{
"j"
},
Name
:
"job"
,
Aliases
:
[]
string
{
"j
obs"
,
"j
"
},
Usage
:
"作业 API,中文文档:https://docs.gitlab.cn/jh/api/jobs.html"
,
Flags
:
append
(
flag
.
Common
(),
flag
.
Sort
()),
Subcommands
:
[]
*
cli
.
Command
{
...
...
pipelines/pipelines.go
浏览文件 @
930ec131
...
...
@@ -11,8 +11,8 @@ import (
// Pipelines 流水线 API https://docs.gitlab.cn/jh/api/pipelines.html
func
Pipelines
()
*
cli
.
Command
{
return
&
cli
.
Command
{
Name
:
"pipeline
s
"
,
Aliases
:
[]
string
{
"pl"
},
Name
:
"pipeline"
,
Aliases
:
[]
string
{
"p
ipelines"
,
"p
l"
},
Usage
:
"流水线 API,中文文档:https://docs.gitlab.cn/jh/api/pipelines.html"
,
Flags
:
append
(
flag
.
Common
(),
flag
.
Sort
(),
flag
.
Id
(
false
)),
Subcommands
:
[]
*
cli
.
Command
{
...
...
projects/projects.go
浏览文件 @
930ec131
...
...
@@ -11,8 +11,8 @@ import (
// Projects 项目 API https://docs.gitlab.cn/jh/api/projects.html
func
Projects
()
*
cli
.
Command
{
return
&
cli
.
Command
{
Name
:
"project
s
"
,
Aliases
:
[]
string
{
"p"
},
Name
:
"project"
,
Aliases
:
[]
string
{
"p
rojects"
,
"p
"
},
Usage
:
"项目 API,中文文档:https://docs.gitlab.cn/jh/api/projects.html"
,
Flags
:
append
(
flag
.
Common
(),
flag
.
Sort
()),
Subcommands
:
[]
*
cli
.
Command
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录