Skip to content

Commit ec8c654

Browse files
refactor(cli): simplify CLI with display_name, generic setter, and dict dispatch
Replace 13 _*_NAMES display-name dicts with display_name() from models, keeping targeted overrides for FireMode and FlameColor. Remove _enum_name helper and @overload decorators on _find_param. Consolidate 8 repetitive FlameEffectParam setter functions into a single _set_flame_effect_field generic helper driven by the _FLAME_EFFECT_SETTERS config dict. Replace the if/elif dispatch chain in cmd_set with _SET_HANDLERS dict lookup. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f7ffd59 commit ec8c654

3 files changed

Lines changed: 143 additions & 345 deletions

File tree

0 commit comments

Comments
 (0)