2 Commits

Author SHA1 Message Date
36f465f2cf refactor(cli): remove slicing from search helper
Removed the top 5 slicing constraint from the search helper function within the CLI package. This change allows to return all components whose score exceeds zero, instead of restricting it to the top 5.
2024-06-08 02:04:08 +09:00
48cb320303 feat(cli): add Jaro-Winkler algorithm and getSuggestion method to search helpers
This commit introduces a new file "search.ts" in the CLI helpers. It adds the implementation of the Jaro-Winkler string comparison algorithm and a "getSuggestion" function. The getSuggestion function uses the Jaro-Winkler algorithm for comparing component names against an input string and providing suitable suggestions.
2024-06-07 21:31:27 +09:00