-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(cli): enhance receiver parsing and validation
- Introduced `removeSpacesAroundCommas` function to streamline input processing by removing unnecessary spaces around commas. - Improved `parseReceiversWithGrouping` to better handle nested groupings and enhance error messaging for invalid formats. - Added `sortGroupLabels` function to return sorted group labels for improved consistency in output. - Updated `verifyReceivers` and `verifyReceiversGrouping` functions to provide clearer error messages when expected and actual receivers do not match. - Enhanced `formatOutput` to generate a more structured output of receivers and their groupings. These changes improve the robustness and usability of the receiver parsing and validation functionality in the routing test command. Signed-off-by: heartwilltell <heartwilltell@gmail.com>
- Loading branch information
1 parent
9266c91
commit 7fb8ba3
Showing
1 changed file
with
152 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters