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/util/git.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/util/git.rs')
| -rw-r--r-- | crates/shirabe/src/util/git.rs | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/crates/shirabe/src/util/git.rs b/crates/shirabe/src/util/git.rs index 62d1e0e..8fe66a4 100644 --- a/crates/shirabe/src/util/git.rs +++ b/crates/shirabe/src/util/git.rs @@ -1,5 +1,6 @@ //! ref: composer/src/Composer/Util/Git.php +use crate::io::io_interface; use anyhow::Result; use indexmap::IndexMap; use std::sync::Mutex; @@ -75,7 +76,7 @@ impl Git { io.write_error( PhpMixed::String(format!("<warning>{}</warning>", msg)), true, - IOInterface::NORMAL, + io_interface::NORMAL, ); } } @@ -540,7 +541,7 @@ impl Git { .to_string(), ), true, - IOInterface::NORMAL, + io_interface::NORMAL, ); if run_commands_inline( &ssh_url, @@ -679,12 +680,12 @@ impl Git { m2 )), true, - IOInterface::NORMAL, + io_interface::NORMAL, ); self.io.write_error( PhpMixed::String(format!("<warning>{}</warning>", trim(&error_msg, None))), true, - IOInterface::VERBOSE, + io_interface::VERBOSE, ); let mut auth_map: IndexMap<String, Option<String>> = IndexMap::new(); auth_map.insert( @@ -792,7 +793,7 @@ impl Git { url )), true, - IOInterface::NORMAL, + io_interface::NORMAL, ); return Ok(false); @@ -857,7 +858,7 @@ impl Git { self.io.write_error( PhpMixed::String(format!("<error>Sync mirror failed: {}</error>", e)), true, - IOInterface::DEBUG, + io_interface::DEBUG, ); return Ok(false); @@ -1173,7 +1174,7 @@ impl Git { e )), true, - IOInterface::DEBUG, + io_interface::DEBUG, ); None } |
