cnb-rs info
cnb-rs info显示当前用户和仓库的详细信息。
通过 API 获取当前认证用户信息和仓库信息,输出以下字段:
用户信息:
MyID— 用户 IDMyUserName— 用户名MyNickName— 昵称MyEmail— 邮箱
仓库信息:
RepoName— 仓库路径RepoID— 仓库 IDRepoLicense— 许可证RepoStars— Star 数RepoForks— Fork 数RepoDescription— 仓库描述
示例
bash
# 显示当前仓库信息
$ cnb-rs info
# 指定仓库
$ cnb-rs --repo wwvo/cnb-rs/cnb-rs info输出示例
MyID 12345
MyUserName zhangsan
MyNickName 张三
MyEmail zhangsan@example.com
RepoName wwvo/cnb-rs/cnb-rs
RepoID 67890
RepoLicense MIT
RepoStars 128
RepoForks 32
RepoDescription 一个非官方的 CNB 命令行工具