Skip to content

feat: add pull command with destructive change protection#160

Draft
angeloashmore wants to merge 1 commit intomainfrom
aa/safe-pull
Draft

feat: add pull command with destructive change protection#160
angeloashmore wants to merge 1 commit intomainfrom
aa/safe-pull

Conversation

@angeloashmore
Copy link
Copy Markdown
Member

@angeloashmore angeloashmore commented Apr 21, 2026

Note

This is exploratory work not intended to be merged.

Resolves:

Description

Adds a pull command that fetches types and slices from Prismic. Destructive operations (overwrites, deletes) require --force confirmation.

Checklist

  • A comprehensive Linear ticket, providing sufficient context and details to facilitate the review of the PR, is linked to the PR.
  • If my changes require tests, I added them.
  • If my changes affect backward compatibility, it has been discussed.
  • If my changes require an update to the CONTRIBUTING.md guide, I updated it.

Preview

$ prismic pull
Pulling from repository: example-prismic-repo
The following destructive changes will happen:

  OPERATION         ID               FILE
  Overwrite slice   call_to_action   src/slices/CallToAction/model.json

Re-run the command with `--force` to confirm.

How to QA 1


View in Codesmith
Codesmith can help with this PR — just tag @codesmith or enable autofix.

  • Autofix CI and bot reviews

Footnotes

  1. Please use these labels when submitting a review:
    ❓ #ask: Ask a question.
    💡 #idea: Suggest an idea.
    ⚠️ #issue: Strongly suggest a change.
    🎉 #nice: Share a compliment.

Adds a `pull` command that fetches types and slices from Prismic.
Destructive operations (overwrites, deletes) require `--force` confirmation.
Renames internal `sync*` adapter methods to `pull*` for clarity.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant