-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Add '--force' option to 'influxdb3 delete' subcommands #25942
Comments
Hey @sanderson |
@noobyogi0010 you can see where the prompt for confirmation is emitted for influxdb/influxdb3/src/commands/delete.rs Lines 166 to 172 in fa18b6d
The configuration for that command, i.e., where the influxdb/influxdb3/src/commands/delete.rs Lines 85 to 103 in fa18b6d
There is a similar prompt for influxdb/influxdb3/src/commands/delete.rs Lines 206 to 217 in fa18b6d
And which is configured here: influxdb/influxdb3/src/commands/delete.rs Lines 133 to 140 in fa18b6d
We have a test suite for verifying CLI commands, you can see a test for database deletion here: influxdb/influxdb3/tests/cli/mod.rs Line 370 in fa18b6d
Note, that uses The expectation is that you add tests to that test suite to verify that your changes are working as expected. |
Use case:
When scripting commands, providing input into an interactive prompt is tedious. It would be better if we gave users the option to force deletes with a
--force
option.Proposal:
Add a
--force
option to all theinfluxdb3 delete
subcommands to skip the confirmation prompt and force the delete operation.Current behaviour:
There isn't a way to confirm a resource deletion without interacting with the confirmation prompt.
Desired behaviour:
Support
--force
on delete operations so you don't have to confirm each delete operation through a command prompt.The text was updated successfully, but these errors were encountered: