meshery
meshery copied to clipboard
mesheryctl: Improve multi-word filter name handling in delete command
Description
This PR improves the handling of filter names in the mesheryctl filter delete
command, specifically addressing the issue with multi-word filter names. It resolves issue #11370 by implementing proper support for quoted multi-word arguments and providing clear error messages for incorrect usage.
Changes
- Added support for quoted multi-word filter names
- Implemented error handling for unquoted multi-word arguments
- Added functionality to trim surrounding quotes from input
- Updated error messages to guide users on correct usage
Areas affected and ensured works
-
mesheryctl filter delete
command -
Error handling in the filter delete command
-
Input processing for filter names
-
Refactored a few lines.
-
[x] Yes, I signed my commits.