Add --reading, --meaning, and --pattern search options to word command #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adding --reading, --meaning, and --pattern options to word command
Summary of Changes
WordCommand.fs (src/Kensaku.CLI/)
--reading,--meaning, and--patternisSearchOptionto recognize the new search optionswordHandlerto build a query from the new options and callgetWordsByQueryAsyncAsync.AwaitTaskandAsync.RunSynchronouslyto match existing code styleWords.fs (src/Kensaku.Core/)
GetWordQuerytype to hold search parameters (Reading, Meaning, Pattern)getIdsForWordQueryAsyncfunction that builds a SQL query based on the search options:--reading: Exact match on reading elements--meaning: Regex match on English glosses (similar to kanji meaning search)--pattern: SQL LIKE match on both kanji and reading elementsgetWordsByQueryAsyncfunction using the task computation expression patternAll options can be combined, and validation ensures at least one search option is provided. The implementation follows the async patterns established in the latest master branch.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.