gh codespace ports
列出 codespace 中的端口
gh codespace ports [flags]
可用命令
选项
-c,--codespace <string>- codespace 的名称
-q,--jq <expression>- 使用 jq 表达式过滤 JSON 输出
-
--json <fields> - 输出包含指定字段的 JSON
-R,--repo <string>- 按仓库名称(用户/仓库)过滤 codespace 选择
-
--repo-owner <string> - 按仓库所有者(用户名或组织)过滤 codespace 选择
-t,--template <string>- 使用 Go 模板格式化 JSON 输出;请参见“gh help formatting”
JSON 字段
browseUrl, label, sourcePort, visibility