Drone CI 中文文档

列举存储库 (drone repo ls)

该子命令用于返回用户所有存储库的完整列表。

1
2
3
4
5
6
7
8
9
NAME:
   drone repo ls - list all repos

USAGE:
   drone repo ls [command options] [arguments...]

OPTIONS:
   --format value  format output
   --org value     filter by organization

以下是命令示例:

1
2
3
4
5
6
7
$ drone repo ls

octocat/hello-world
octocat/fork-spoon
github/gitignore
github/hubot
github/hub

按组织过滤输出:

1
2
3
4
5
$ drone repo ls --org=github

github/gitignore
github/hubot
github/hub

使用一个自定义的 Go 模板对输出进行格式化:

1
2
3
4
5
6
7
$ drone repo ls --format="{{ .Link }}"

https://github.com/octocat/hello-world
https://github.com/octocat/fork-spoon
https://github.com/github/gitignore
https://github.com/github/hubot
https://github.com/github/hub