Skip to content

Refactor and extend target selector parsing logic#195

Open
pyris-dev wants to merge 2 commits intoSerenityJS:mainfrom
pyris-dev:improve-command-selector-logic
Open

Refactor and extend target selector parsing logic#195
pyris-dev wants to merge 2 commits intoSerenityJS:mainfrom
pyris-dev:improve-command-selector-logic

Conversation

@pyris-dev
Copy link
Copy Markdown
Contributor

Introduces a TargetSelectorQuery enum and refactors the TargetEnum class to support more robust and extensible target selector parsing, including support for additional selector types, query keys, and improved error handling. The new implementation allows for more flexible and maintainable command target resolution.

Introduces a TargetSelectorQuery enum and refactors the TargetEnum class to support more robust and extensible target selector parsing, including support for additional selector types, query keys, and improved error handling. The new implementation allows for more flexible and maintainable command target resolution.
Removed the TargetSelectorQuery enum and replaced its usage with string literals for selector queries. Extracted repeated distance calculation logic into a new static method, calculateDistance, in TargetEnum for improved code reuse and readability.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant