Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI pear data reset #596

Open
wants to merge 32 commits into
base: main
Choose a base branch
from
Open

CLI pear data reset #596

wants to merge 32 commits into from

Conversation

AndreiRegiani
Copy link
Contributor

@AndreiRegiani AndreiRegiani commented Feb 5, 2025

  • rm is processed by the Sidecar process via a new IPC dataReset

  • confirmation prompt uses Pear constants.PLATFORM_HYPERDB

  • Graceful model close & re-init

  • --yes flag to skip prompt

  • [ No results ] placeholder


pear data reset

⚠️ Clearing database /Users/user/holepunch/pear/pear/db

Type DELETE to confirm? DELETE
✔ Success

pear data reset --help

pear data reset [flags]

Advanced. Clear local database

Flags:
  --yes       Skip confirmation prompt
  --help|-h   Show help

image

--yes

./pear.dev data reset --yes
✔ Success

@AndreiRegiani AndreiRegiani added the enhancement New feature or request label Feb 5, 2025
@AndreiRegiani AndreiRegiani changed the title CLI: pear data shows PLATFORM_DIR CLI pear data reset to delete PLATFORM_HYPERDB directory Feb 5, 2025
@AndreiRegiani AndreiRegiani changed the title CLI pear data reset to delete PLATFORM_HYPERDB directory CLI pear data reset Feb 5, 2025
@AndreiRegiani AndreiRegiani changed the title CLI pear data reset [WIP] CLI pear data reset Feb 6, 2025
@AndreiRegiani AndreiRegiani changed the title [WIP] CLI pear data reset CLI pear data reset Feb 10, 2025
@AndreiRegiani
Copy link
Contributor Author

holepunchto/pear-ipc#31

@AndreiRegiani
Copy link
Contributor Author

⚠️

    "pear-ipc": "github:holepunchto/pear-ipc#data-reset",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant