forked from Gitlink/gitlink-cli
1.1 KiB
1.1 KiB
repo +delete
前置条件: 先阅读
../gitlink-shared/SKILL.md了解认证、全局参数和安全规则。
删除一个仓库。
命令
# 删除当前仓库(从 git remote 推断 owner/repo)
gitlink-cli repo +delete
# 删除指定仓库
gitlink-cli repo +delete --owner someone --repo old-repo
参数
| 参数 | 必填 | 说明 |
|---|---|---|
--owner |
是* | 仓库所有者(可从 git remote 自动推断) |
--repo |
是* | 仓库名称(可从 git remote 自动推断) |
--format |
否 | 输出格式:json/table/yaml |
--debug |
否 | 启用调试输出 |
*如果在 GitLink 仓库目录下执行,
--owner和--repo可自动推断。
Workflow
[!CAUTION] This is a Destructive Operation -- confirm user intent.
- 确认用户确实希望删除该仓库(此操作不可逆)。
- 执行
repo +delete --owner <owner> --repo <repo>。 - 输出删除结果。