From 9d9da0d1512202af7802d13b1c3c33a1a077a84e Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 10 Aug 2026 04:38:35 +0900 Subject: refactor(symfony): hide leaf modules behind their parent re-exports Every parent module in the symfony-* crates already re-exported its leaf modules with `pub use`, so each item was reachable by two paths. Make the leaf modules private and route all callers through the single re-exported path. Co-Authored-By: Claude Opus 5 (1M context) --- crates/shirabe/src/command/base_command.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/shirabe/src/command/base_command.rs') diff --git a/crates/shirabe/src/command/base_command.rs b/crates/shirabe/src/command/base_command.rs index ceb71bf1..9eb28dd8 100644 --- a/crates/shirabe/src/command/base_command.rs +++ b/crates/shirabe/src/command/base_command.rs @@ -23,7 +23,7 @@ use shirabe_php_shim::{ UnexpectedValueException, count, explode, in_array_strict, is_string, }; use shirabe_symfony_console::Terminal; -use shirabe_symfony_console::command::command::{Command, CommandData, SetDefinitionArg}; +use shirabe_symfony_console::command::{Command, CommandData, SetDefinitionArg}; use shirabe_symfony_console::helper::Table; use shirabe_symfony_console::helper::TableSeparator; use shirabe_symfony_console::input::InputInterface; @@ -741,10 +741,10 @@ fn apply_application_defaults( /// each command's `Command::complete` forwards here. pub fn base_command_complete( cmd: &dyn BaseCommand, - input: &shirabe_symfony_console::completion::completion_input::CompletionInput, - suggestions: &mut shirabe_symfony_console::completion::completion_suggestions::CompletionSuggestions, + input: &shirabe_symfony_console::completion::CompletionInput, + suggestions: &mut shirabe_symfony_console::completion::CompletionSuggestions, ) -> anyhow::Result<()> { - use shirabe_symfony_console::completion::completion_input::CompletionInput; + use shirabe_symfony_console::completion::CompletionInput; // PHP: (string) $input->getCompletionName() let name = input.get_completion_name().unwrap_or_default(); -- cgit v1.3.1-4-g156e