github / github/spec-kit

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

Ouverte
#4,505 6 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement feature-assess feature-go triage-nice-to-have
Langage dominant
Python
Étoiles
137k
Forks
12.3k
Merge moyen
2 j 12 h
PR mergées (30 j)
159

Description

### 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_

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
cli
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
Active
Clarté
Plutôt claire
Accessibilité débutants
48/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.