Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
徐晓伟工作室
gitlab-go
提交
e8cab065
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,体验更适合开发者的 AI 搜索 >>
提交
e8cab065
编写于
10月 05, 2023
作者:
徐晓伟
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
📝
上级
5e3590bf
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
100 addition
and
7 deletion
+100
-7
README.md
README.md
+100
-7
未找到文件。
README.md
浏览文件 @
e8cab065
# GitLab Go
# GitLab Go
脚手架
## 开发命令
...
...
@@ -36,28 +36,121 @@ go run main.go help
```
```
shell
$
go run main.go
help
$
go run main.go
--
help
NAME:
boom - make an explosive entrance
gitlab-go - 基于 Go 语言开发的 GitLab 命令行工具
USAGE:
boom
[
global options]
command
[
command
options]
[
arguments...]
gitlab-go
[
global options]
command
[
command
options]
[
arguments...]
VERSION:
v0.0.1-snapshot
dev
COMMANDS:
help
, h Shows a list of commands or
help
for
one
command
projects, p 项目 API,中文文档:https://docs.gitlab.cn/jh/api/projects.html
pipelines, pl 流水线 API,中文文档:https://docs.gitlab.cn/jh/api/pipelines.html
jobs
, 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
GLOBAL OPTIONS:
--help
,
-h
show
help
--version
,
-v
print the version
```
-
[
projects - 项目 API
](
https://docs.gitlab.cn/jh/api/projects.html
)
```
shell
$
go run main.go projects
--help
NAME:
gitlab-go projects - 项目 API,中文文档:https://docs.gitlab.cn/jh/api/projects.html
USAGE:
gitlab-go projects
command
[
command
options]
[
arguments...]
COMMANDS:
list 列出所有项目
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%]
--token
value your_access_token
--sort
value 按照 asc 或者 desc 排序
(
default:
"desc"
)
--help
,
-h
show
help
```
-
[
pipelines - 流水线 API
](
https://docs.gitlab.cn/jh/api/pipelines.html
)
```
shell
$
go run main.go pipelines
--help
NAME:
gitlab-go pipelines - 流水线 API,中文文档:https://docs.gitlab.cn/jh/api/pipelines.html
USAGE:
gitlab-go pipelines
command
[
command
options]
[
arguments...]
COMMANDS:
list 列出项目流水线
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%]
--token
value your_access_token
--sort
value 按照 asc 或者 desc 排序
(
default:
"desc"
)
--id
value 项目 ID 或 URL 编码的路径
--help
,
-h
show
help
```
-
[
jobs - 作业 API
](
https://docs.gitlab.cn/jh/api/jobs.html
)
```
shell
$
go run main.go
jobs
--help
NAME:
gitlab-go
jobs
- 作业 API,中文文档:https://docs.gitlab.cn/jh/api/jobs.html
USAGE:
gitlab-go
jobs command
[
command
options]
[
arguments...]
COMMANDS:
list 列出项目作业
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%]
--token
value your_access_token
--sort
value 按照 asc 或者 desc 排序
(
default:
"desc"
)
--help
,
-h
show
help
```
-
[
job-artifacts - 作业产物 API
](
https://docs.gitlab.cn/jh/api/job_artifacts.html
)
```
shell
$
go run main.go job-artifacts
--help
NAME:
gitlab-go job-artifacts - 作业产物 API,中文文档:https://docs.gitlab.cn/jh/api/job_artifacts.html
USAGE:
gitlab-go job-artifacts
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
OPTIONS:
--base-url
value 实例地址,例如:https://gitlab.xuxiaowei.com.cn/api/v4
(
default:
"https://gitlab.com/api/v4"
)
[
%CI_API_V4_URL%]
--token
value your_access_token
--id
value 项目 ID 或 URL 编码的路径
--job-id
value 作业 ID
--help
,
-h
show
help
```
### test
```
shell
go
test
-v
go
test
./...
-v
```
### build
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录