aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands/global.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/mozart/src/commands/global.rs')
-rw-r--r--crates/mozart/src/commands/global.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/crates/mozart/src/commands/global.rs b/crates/mozart/src/commands/global.rs
index 42f3703..e6e7bc8 100644
--- a/crates/mozart/src/commands/global.rs
+++ b/crates/mozart/src/commands/global.rs
@@ -13,7 +13,11 @@ pub struct GlobalArgs {
// ─── Main entry point ────────────────────────────────────────────────────────
-pub fn execute(args: &GlobalArgs, cli: &super::Cli) -> anyhow::Result<()> {
+pub fn execute(
+ args: &GlobalArgs,
+ cli: &super::Cli,
+ console: &crate::console::Console,
+) -> anyhow::Result<()> {
use clap::Parser as _;
use std::fs;
@@ -21,9 +25,7 @@ pub fn execute(args: &GlobalArgs, cli: &super::Cli) -> anyhow::Result<()> {
fs::create_dir_all(&home)?;
- if !cli.quiet {
- eprintln!("Changed current directory to {}", home.display());
- }
+ console.info(&format!("Changed current directory to {}", home.display()));
// SAFETY: single-threaded at this point; no concurrent env access
unsafe {