chore: rename cmd delete_resource_with_version to purge#567
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #567 +/- ##
==========================================
+ Coverage 41.41% 41.54% +0.12%
==========================================
Files 187 187
Lines 25036 25106 +70
==========================================
+ Hits 10369 10430 +61
- Misses 13492 13504 +12
+ Partials 1175 1172 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
/cherry-pick release-1.0 |
|
🤖 says: Error cherry-picking. |
|
🤖 says: |
This PR introduces several improvements and changes to the kbcli addon command:
• Renaming: The command
kbcli addon delete-resources-with-versionhas been renamed tokbcli addon purgeto better reflect its purpose.• Version Check: The command now checks if the specified versions have remaining resources in the environment and displays them to the user.
• User Confirmation: Before proceeding with the purge operation, the command now prompts the user for confirmation, preventing accidental deletions.
• New Flags:
• --dry-run: Allows the user to preview the resources that will be purged without actually deleting them.
• --auto-approve: Skips the confirmation prompt and automatically proceeds with the purge.
These changes enhance the command’s usability and safety, providing a more intuitive and controlled way to manage addon resources.