-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Feature Description
RTDB import currently replaces data at the target path by default. Make destructive “replace” behavior optional, and add a clear warning prompt to prevent accidental data loss.
Proposed CLI / UX
- Add a flag:
--replace(explicit destructive overwrite)
- Add prompt behavior:
- If
--replaceis used, prompt the user to confirm unless--force/--yesis provided.
- If
- Default behavior (when
--replaceis not set):- should be non-destructive (merge/update) — define exact semantics in docs.
Acceptance Criteria
- Replace is not accidental:
--replacerequired for destructive overwrite- confirmation prompt shown unless
--force/--yes
- Non-replace mode performs documented merge/update semantics.
- Docs updated with warnings + examples.
- Tests cover:
- replace vs merge behavior
- prompt shown / prompt bypassed
Additional Context
Implementation Subtasks
- Flag design (
--replace,--force/--yes) - Prompt and messaging
- Implement set() vs update() behavior
- Docs + tests
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request