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.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/crates/mozart/src/commands/exec.rs b/crates/mozart/src/commands/exec.rs
index 9555601..f802721 100644
--- a/crates/mozart/src/commands/exec.rs
+++ b/crates/mozart/src/commands/exec.rs
@@ -17,8 +17,6 @@ pub struct ExecArgs {
pub list: bool,
}
-// ─── Main entry point ────────────────────────────────────────────────────────
-
pub async fn execute(
args: &ExecArgs,
cli: &super::Cli,
@@ -117,8 +115,6 @@ pub async fn execute(
Ok(())
}
-// ─── Helpers ──────────────────────────────────────────────────────────────────
-
fn resolve_bin_dir(working_dir: &Path, composer: &Composer) -> PathBuf {
// bin-dir's `{$vendor-dir}` placeholder is already resolved by Composer::load.
let bin_dir = composer
@@ -187,15 +183,11 @@ fn get_binaries(working_dir: &Path, bin_dir: &Path) -> Vec<(String, bool)> {
binaries
}
-// ─── Tests ───────────────────────────────────────────────────────────────────
-
#[cfg(test)]
mod tests {
use super::*;
use std::fs;
- // ── resolve_bin_dir ───────────────────────────────────────────────────────
-
#[test]
fn test_resolve_bin_dir_default() {
let dir = tempfile::tempdir().unwrap();
@@ -252,8 +244,6 @@ mod tests {
assert_eq!(result, dir.path().join("packages/commands"));
}
- // ── get_binaries ──────────────────────────────────────────────────────────
-
#[test]
fn test_get_binaries_from_bin_dir() {
let dir = tempfile::tempdir().unwrap();