meshery icon indicating copy to clipboard operation
meshery copied to clipboard

mesheryctl: Improve multi-word filter name handling in delete command

Open MunishMummadi opened this issue 7 months ago • 14 comments

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 Screenshot 2024-07-11 at 4 17 37 PM

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.

MunishMummadi avatar Jul 11 '24 20:07 MunishMummadi