aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands/show.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/mozart/src/commands/show.rs')
-rw-r--r--crates/mozart/src/commands/show.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/crates/mozart/src/commands/show.rs b/crates/mozart/src/commands/show.rs
index cf15bb2..6c72540 100644
--- a/crates/mozart/src/commands/show.rs
+++ b/crates/mozart/src/commands/show.rs
@@ -3,7 +3,7 @@ use indexmap::{IndexMap, IndexSet};
use mozart_core::console::Verbosity;
use mozart_core::console_format;
use mozart_core::matches_wildcard;
-use std::path::{Path, PathBuf};
+use std::path::Path;
#[derive(Args)]
pub struct ShowArgs {
@@ -166,10 +166,7 @@ pub async fn execute(
);
}
- let working_dir = match &cli.working_dir {
- Some(dir) => PathBuf::from(dir),
- None => std::env::current_dir()?,
- };
+ let working_dir = cli.working_dir()?;
// --platform: show detected platform packages
if args.platform {