refactor: standardize command names to :RESOURCE:ACTION: pattern#80
refactor: standardize command names to :RESOURCE:ACTION: pattern#80
Conversation
Summary of ChangesHello @fank, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly refactors the internal command naming scheme to enhance consistency and maintainability across the addon. By adopting a standardized Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
The pull request standardizes command names to a :RESOURCE:ACTION: pattern, improving consistency and clarity across the codebase. This refactoring impacts various parts of the system, including extension callbacks, logging, entity creation/state updates, event handling, and mission save/start commands. The changes align with the stated goal of making command names more predictable and organized.
…ttern Rename all command strings from inconsistent naming (overloaded :NEW:, mixed verb/noun ordering, bare nouns) to a consistent :RESOURCE:ACTION: pattern. This is a coordinated change with the extension repo. Key changes: - System commands namespaced under :SYS: (INIT, VERSION, LOG, DIR) - Entity commands use :RESOURCE:CREATE/STATE: (SOLDIER, VEHICLE, PLACED, MARKER) - Event commands namespaced under :EVENT: (GENERAL, KILL, PROJECTILE, CHAT, RADIO) - Mission commands flipped to :MISSION:START/SAVE: - Telemetry uses :TELEMETRY:FRAME: - Callbacks aligned (:EXT:READY: → :SYS:READY:, :GETDIR: → :SYS:DIR:)
305cef4 to
97412ac
Compare
Summary
:NEW:, mixed verb/noun ordering, bare nouns) to a consistent:RESOURCE:ACTION:pattern:SYS:(INIT, VERSION, LOG, DIR):RESOURCE:CREATE/STATE:(SOLDIER, VEHICLE, PLACED, MARKER):EVENT:(GENERAL, KILL, PROJECTILE, CHAT, RADIO):MISSION:START/SAVE::EXT:READY:→:SYS:READY:,:GETDIR:→:SYS:DIR:)Coordinated change
Must be deployed together with the extension PR: OCAP2/extension#128
Test plan
hemtt buildsucceeds