aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/init_command.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-23 01:41:33 +0900
committernsfisis <nsfisis@gmail.com>2026-06-23 01:41:33 +0900
commit421d98d9a52dd036acd5632f9049f4503c9add18 (patch)
tree578d4bc15a7cb01a591393df85d0b9cdfd7d6ea2 /crates/shirabe/src/command/init_command.rs
parent894764ecb04f9c456b9ebda77d155bf6128e2175 (diff)
downloadphp-shirabe-421d98d9a52dd036acd5632f9049f4503c9add18.tar.gz
php-shirabe-421d98d9a52dd036acd5632f9049f4503c9add18.tar.zst
php-shirabe-421d98d9a52dd036acd5632f9049f4503c9add18.zip
refactor(io): hold QuestionHelper directly in ConsoleIO instead of HelperSet
Every ConsoleIO construction site only ever registers a single QuestionHelper (production) or none (tests), and routing asks through HelperSet::get('question') loses the concrete type, forcing a downcast back to QuestionHelper. Receive the QuestionHelper in the constructor and hold it directly (in a RefCell, since QuestionHelper::ask takes &mut self while the IOInterfaceImmutable ask methods are &self), dropping the HelperSet field and the throwaway HelperSet built at each call site. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/command/init_command.rs')
0 files changed, 0 insertions, 0 deletions