这个子命令打印一个仓库的详细信息。
NAME:
drone repo info - show repository details
USAGE:
drone repo info [command options] [arguments...]
OPTIONS:
--format value format output (default: "Owner: {{ .Owner }}\nRepo: {{ .Name }}\nType: {{ .Kind }}\nConfig: {{ .Config }}\nVisibility: {{ .Visibility }}\nPrivate: {{ .IsPrivate }}\nTrusted: {{ .IsTrusted }}\nGated: {{ .IsGated }}\nRemote: {{ .Clone }}\n")
使用示例:
$ drone repo info octocat/hello-world
Owner: octocat
Repo: hello-world
Type: git
Private: false
Remote: https://github.com/octocat/hello-world.git
使用 Go 模版来格式化输出:
$ drone repo info --format="{{ .Link }}" octocat/hello-world
https://github.com/octocat/hello-world.git