diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-19 21:46:01 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-19 21:46:08 +0900 |
| commit | 5e31fa33c3b5cf726a57a063b8e7a070869250fe (patch) | |
| tree | 98522466966fa7df483cad174ab5fc03db39bc09 /crates/shirabe/src/command/prohibits_command.rs | |
| parent | c839244d8d09f3036ebfee8eef7eb6b147e593ab (diff) | |
| download | php-shirabe-5e31fa33c3b5cf726a57a063b8e7a070869250fe.tar.gz php-shirabe-5e31fa33c3b5cf726a57a063b8e7a070869250fe.tar.zst php-shirabe-5e31fa33c3b5cf726a57a063b8e7a070869250fe.zip | |
fix(compile): fix more random compile errors
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/command/prohibits_command.rs')
| -rw-r--r-- | crates/shirabe/src/command/prohibits_command.rs | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/crates/shirabe/src/command/prohibits_command.rs b/crates/shirabe/src/command/prohibits_command.rs index 26c17f2..80f1ed2 100644 --- a/crates/shirabe/src/command/prohibits_command.rs +++ b/crates/shirabe/src/command/prohibits_command.rs @@ -5,8 +5,8 @@ use crate::command::base_dependency_command::BaseDependencyCommand; use crate::console::input::input_argument::InputArgument; use crate::console::input::input_option::InputOption; use crate::io::io_interface::IOInterface; -use shirabe_external_packages::symfony::console::input::input_interface::InputInterface; -use shirabe_external_packages::symfony::console::output::output_interface::OutputInterface; +use shirabe_external_packages::symfony::component::console::input::input_interface::InputInterface; +use shirabe_external_packages::symfony::component::console::output::output_interface::OutputInterface; #[derive(Debug)] pub struct ProhibitsCommand { @@ -21,40 +21,50 @@ impl ProhibitsCommand { self.set_name("prohibits") .set_aliases(&["why-not".to_string()]) .set_description("Shows which packages prevent the given package from being installed") - .set_definition(vec![ + .set_definition(&[ InputArgument::new( - BaseDependencyCommand::ARGUMENT_PACKAGE, + <Self as BaseDependencyCommand>::ARGUMENT_PACKAGE, Some(InputArgument::REQUIRED), "Package to inspect", None, - ), + ) + .unwrap() + .into(), InputArgument::new( - BaseDependencyCommand::ARGUMENT_CONSTRAINT, + <Self as BaseDependencyCommand>::ARGUMENT_CONSTRAINT, Some(InputArgument::REQUIRED), "Version constraint, which version you expected to be installed", None, - ), + ) + .unwrap() + .into(), InputOption::new( - BaseDependencyCommand::OPTION_RECURSIVE, + <Self as BaseDependencyCommand>::OPTION_RECURSIVE, Some(shirabe_php_shim::PhpMixed::String("r".to_string())), Some(InputOption::VALUE_NONE), "Recursively resolves up to the root package", None, - ), + ) + .unwrap() + .into(), InputOption::new( - BaseDependencyCommand::OPTION_TREE, + <Self as BaseDependencyCommand>::OPTION_TREE, Some(shirabe_php_shim::PhpMixed::String("t".to_string())), Some(InputOption::VALUE_NONE), "Prints the results as a nested tree", None, - ), + ) + .unwrap() + .into(), InputOption::new( "locked", None, Some(InputOption::VALUE_NONE), "Read dependency information from composer.lock", None, - ), + ) + .unwrap() + .into(), ]) .set_help( "Displays detailed information about why a package cannot be installed.\n\n\ @@ -75,7 +85,7 @@ impl BaseDependencyCommand for ProhibitsCommand { &self.colors } - fn colors_mut(&mut self) -> &mut [String] { + fn colors_mut(&mut self) -> &mut Vec<String> { &mut self.colors } } |
