aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands/exec.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/mozart/src/commands/exec.rs')
-rw-r--r--crates/mozart/src/commands/exec.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/mozart/src/commands/exec.rs b/crates/mozart/src/commands/exec.rs
index 2b3c836..63c29c9 100644
--- a/crates/mozart/src/commands/exec.rs
+++ b/crates/mozart/src/commands/exec.rs
@@ -1,6 +1,7 @@
use crate::composer::Composer;
use clap::Args;
use mozart_core::console_writeln;
+use mozart_core::package::Package;
use std::path::{Path, PathBuf};
#[derive(Args)]
@@ -125,7 +126,7 @@ fn get_binaries(composer: &Composer, bin_dir: &Path) -> Vec<(String, bool)> {
let local_bins: Vec<(String, bool)> = composer
.package()
- .bin
+ .binaries()
.iter()
.filter_map(|e| Some(PathBuf::from(e).file_name()?.to_string_lossy().into_owned()))
.map(|e| (e, true))