cnb-rs repo tag annotation delete
cnb-rs repo tag annotation delete <TAG> <KEY> [-y]
cnb-rs repo tag annotation rm <TAG> <KEY> [-y]删除指定 tag 的指定 annotation key。
参数
<TAG>: Tag 名<KEY>: 要删的 annotation key
选项
-y, --yes: 跳过 confirm 提示
示例
bash
cnb-rs --repo wwvo/cnb-rs/cnb-rs repo tag annotation rm v1.0.0 builder -yAPI
| 步骤 | API | 方法 |
|---|---|---|
| 删 annotation | ${CNB_API_ENDPOINT}/{repo}/-/git/tag-annotations/{tag}/{key} | DELETE |
注:CNB API 把
{tag}/{key}作为单一 URL 路径参数;本命令在 CLI 层暴露独立的两个参数,内部format!("{}/{}", tag, key)拼接。