diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-22 23:28:29 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-22 23:28:29 +0900 |
| commit | 6df59c5e154c2f587de743e675833f5157988b9b (patch) | |
| tree | bfdd36b8f5ffd29e27b8f8464033d76dedbb7214 /crates/mozart/src/commands/bump.rs | |
| parent | 9acffe293fdf05fcaf72fb941a13912f31ddfbf8 (diff) | |
| download | php-mozart-6df59c5e154c2f587de743e675833f5157988b9b.tar.gz php-mozart-6df59c5e154c2f587de743e675833f5157988b9b.tar.zst php-mozart-6df59c5e154c2f587de743e675833f5157988b9b.zip | |
feat(cli): match Composer's --version output format
Replace clap's built-in --version with custom handler that outputs
Composer-compatible version info: Mozart version line, PHP version
with binary path, and diagnose hint. Add detect_php_version_and_binary()
to mozart-core platform module.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart/src/commands/bump.rs')
| -rw-r--r-- | crates/mozart/src/commands/bump.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/mozart/src/commands/bump.rs b/crates/mozart/src/commands/bump.rs index b322dbe..e1b5f63 100644 --- a/crates/mozart/src/commands/bump.rs +++ b/crates/mozart/src/commands/bump.rs @@ -311,12 +311,13 @@ mod tests { fn make_cli(working_dir: &std::path::Path) -> super::super::Cli { super::super::Cli { - command: super::super::Commands::Bump(BumpArgs { + command: Some(super::super::Commands::Bump(BumpArgs { packages: vec![], dev_only: false, no_dev_only: false, dry_run: false, - }), + })), + version: false, verbose: 0, profile: false, no_plugins: false, |
