github / github/spec-kit

[Feature]: make catalog add command as "UPSERT"

未关闭
#4,505 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement feature-assess feature-go triage-nice-to-have
主要语言
Python
星标
137k
派生
12.3k
平均合并
2 天 12 小时
30 天内合并 PR
159

描述

### Problem Statement

When we run a catalog add command, be it extension catalog or present catalog or others, it gives an error if the catalog already exists. If this can be made as UPSERT, it would help to simply use the command without failing.

This is especially useful in scenarios where these commands are part of a workflow and thus can potentially be executed multiple times. Without the UPSERT behavior, the consumers have to add that logic in the workflow.

### Proposed Solution

Make catalog add command idempotent / work like add + update OR add + ignore.

### Alternatives Considered

_No response_

### Component

Specify CLI (initialization, commands)

### AI Agent (if applicable)

None

### Use Cases

_No response_

### Acceptance Criteria

_No response_

### Additional Context

_No response_

贡献指南

打开贡献指南

调研方向

Start at the CLI initialization and commands entry point for the catalog add command, then trace how existing catalogs are handled. Review the catalog command tests and clarify whether an existing catalog should be updated or ignored. Done means repeated catalog-add workflow runs no longer fail and the chosen existing-catalog behavior is covered by tests.

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
cli
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。