From 72b2e877c01e67ba7edd37e34ac2eadb7a1c62c4 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 9 May 2026 19:59:58 +0900 Subject: refactor(vcs): mirror Composer interfaces; rename get_local_changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Rename `local_changes` → `get_local_changes` to match Composer's `getLocalChanges` - Add `is_change_report`, `is_vcs_capable_downloader`, `is_dvcs_downloader` trait methods to replace PHP `instanceof` checks - Add `VersionParser` stub to keep `VersionGuesser::new` signature compatible with Composer's constructor - Add `ArrayDumper` in status.rs mirroring `Composer\Package\Dumper\ArrayDumper`; expand `build_package_config` to include all fields that `VersionGuesser` inspects --- crates/mozart/src/commands.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/mozart/src/commands.rs') diff --git a/crates/mozart/src/commands.rs b/crates/mozart/src/commands.rs index f9b8880..d0139d5 100644 --- a/crates/mozart/src/commands.rs +++ b/crates/mozart/src/commands.rs @@ -96,6 +96,10 @@ impl Cli { .map_err(|e| anyhow::anyhow!("Failed to get current directory: {}", e)), } } + + fn is_verbose(&self) -> bool { + self.verbose > 0 + } } #[derive(clap::Subcommand)] -- cgit v1.3.1