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

purge command should give feedback if can not be executed #3140

Open
islamaliev opened this issue Oct 16, 2024 · 0 comments
Open

purge command should give feedback if can not be executed #3140

islamaliev opened this issue Oct 16, 2024 · 0 comments
Labels
area/cli Related to the CLI binary

Comments

@islamaliev
Copy link
Contributor

In normal mode:

$ defradb client purge
Error: run this command again with --force if you really want to purge all data
$ defradb client purge --force

There is no output as if it was successful.
Node's logs:

Oct 15 13:57:19.878 INF cli Received purge event; restarting...
Oct 15 13:57:19.878 ERR cli failed to purge $err="cannot purge database when development mode is disabled"

Client's CLI should output that purge can not be performed instead of letting it through and silently failing.

@islamaliev islamaliev added the area/cli Related to the CLI binary label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Related to the CLI binary
Projects
None yet
Development

No branches or pull requests

1 participant