aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands/dump_autoload.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-06 04:02:24 +0900
committernsfisis <nsfisis@gmail.com>2026-05-06 04:05:13 +0900
commit2bc47940be9359e34cfe50c64fe76234999bc716 (patch)
tree52859450ba8704df79d22917aa132fc5b3a702a6 /crates/mozart/src/commands/dump_autoload.rs
parentbf96f8292c0e9818c8b5fc8713ca7506e4338a49 (diff)
downloadphp-mozart-2bc47940be9359e34cfe50c64fe76234999bc716.tar.gz
php-mozart-2bc47940be9359e34cfe50c64fe76234999bc716.tar.zst
php-mozart-2bc47940be9359e34cfe50c64fe76234999bc716.zip
refactor(console): rename color helpers and migrate call sites to console_format!
The six tag-style color functions (info, comment, error, question, highlight, warning) are pub only so that console_format! can call them from generated code; they are not part of the public API. Rename them to __format_*_message to make that intent visible, add a doc-comment saying not to call them directly, and replace every remaining direct call site with console_format!. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart/src/commands/dump_autoload.rs')
-rw-r--r--crates/mozart/src/commands/dump_autoload.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/crates/mozart/src/commands/dump_autoload.rs b/crates/mozart/src/commands/dump_autoload.rs
index a86cf21..076d72d 100644
--- a/crates/mozart/src/commands/dump_autoload.rs
+++ b/crates/mozart/src/commands/dump_autoload.rs
@@ -1,4 +1,5 @@
use clap::Args;
+use mozart_core::console_format;
#[derive(Args)]
pub struct DumpAutoloadArgs {
@@ -67,11 +68,8 @@ pub async fn execute(
let install_path = vendor_composer_dir.join(rel);
if !install_path.exists() {
missing_dependencies = true;
- console.info(&format!(
- "{}",
- mozart_core::console::warning(
- "Not all dependencies are installed. Make sure to run a \"composer install\" to install missing dependencies"
- )
+ console.info(&console_format!(
+ "<warning>Not all dependencies are installed. Make sure to run a \"composer install\" to install missing dependencies</warning>"
));
break;
}