diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-17 14:33:13 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-17 14:38:16 +0900 |
| commit | 3e21569688cf0c8a1918c73ff96cb1b3aeffe0b3 (patch) | |
| tree | 712ae7832124da20739f5b389cebe4f44abd7225 /crates/shirabe/src/command/update_command.rs | |
| parent | ac59538140a93d9a023da2115148bc9779223978 (diff) | |
| download | php-shirabe-3e21569688cf0c8a1918c73ff96cb1b3aeffe0b3.tar.gz php-shirabe-3e21569688cf0c8a1918c73ff96cb1b3aeffe0b3.tar.zst php-shirabe-3e21569688cf0c8a1918c73ff96cb1b3aeffe0b3.zip | |
fix(compile): extract constants from traits to make them dyn-compatible
Diffstat (limited to 'crates/shirabe/src/command/update_command.rs')
| -rw-r--r-- | crates/shirabe/src/command/update_command.rs | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/crates/shirabe/src/command/update_command.rs b/crates/shirabe/src/command/update_command.rs index aeeb7ba..dca0d07 100644 --- a/crates/shirabe/src/command/update_command.rs +++ b/crates/shirabe/src/command/update_command.rs @@ -1,5 +1,6 @@ //! ref: composer/src/Composer/Command/UpdateCommand.php +use crate::io::io_interface; use anyhow::Result; use indexmap::IndexMap; use shirabe_external_packages::composer::pcre::preg::Preg; @@ -119,7 +120,7 @@ impl UpdateCommand { "<warning>You are using the deprecated option \"--dev\". It has no effect and will break in Composer 3.</warning>".to_string(), ), true, - IOInterface::NORMAL, + io_interface::NORMAL, ); } if input.get_option("no-suggest").as_bool().unwrap_or(false) { @@ -128,7 +129,7 @@ impl UpdateCommand { "<warning>You are using the deprecated option \"--no-suggest\". It has no effect and will break in Composer 3.</warning>".to_string(), ), true, - IOInterface::NORMAL, + io_interface::NORMAL, ); } @@ -140,7 +141,7 @@ impl UpdateCommand { "<warning>Composer is operating significantly slower than normal because you do not have the PHP curl extension enabled.</warning>".to_string(), ), true, - IOInterface::NORMAL, + io_interface::NORMAL, ); } @@ -228,7 +229,7 @@ impl UpdateCommand { todo!("root_requirements[package].get_pretty_constraint()"), )), true, - IOInterface::NORMAL, + io_interface::NORMAL, ); io.write( PhpMixed::String(format!( @@ -236,7 +237,7 @@ impl UpdateCommand { package, package, constraint, )), true, - IOInterface::NORMAL, + io_interface::NORMAL, ); return Ok(BaseCommand::FAILURE); @@ -339,7 +340,7 @@ impl UpdateCommand { .to_string(), ), true, - IOInterface::NORMAL, + io_interface::NORMAL, ); return Ok(-1); @@ -449,7 +450,7 @@ impl UpdateCommand { io.write_error( PhpMixed::String("<info>Bumping dependencies</info>".to_string()), true, - IOInterface::NORMAL, + io_interface::NORMAL, ); let mut bump_command = BumpCommand::new(); bump_command.set_composer(composer.clone()); @@ -511,7 +512,7 @@ impl UpdateCommand { io.write_error( PhpMixed::String("<info>Loading packages that can be updated...</info>".to_string()), true, - IOInterface::NORMAL, + io_interface::NORMAL, ); let mut autocompleter_values: IndexMap<String, String> = IndexMap::new(); let installed_packages = if composer.get_locker().is_locked() { |
