diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-08 20:44:26 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-08 20:44:26 +0900 |
| commit | ee17433f9beb95071f37aa6cfe659f14b81ce503 (patch) | |
| tree | 512187f12ce668cb6ac09c14bd8fd2cfad212449 /crates/mozart/src/commands/check_platform_reqs.rs | |
| parent | 92fa497cc345118198508fcf948ff650e8902434 (diff) | |
| download | php-mozart-ee17433f9beb95071f37aa6cfe659f14b81ce503.tar.gz php-mozart-ee17433f9beb95071f37aa6cfe659f14b81ce503.tar.zst php-mozart-ee17433f9beb95071f37aa6cfe659f14b81ce503.zip | |
fix(outdated): align with Composer's OutdatedCommand proxy
Composer's OutdatedCommand (isProxyCommand = true) just remaps options
and re-invokes `show --latest [--outdated]`; Mozart's outdated.rs was a
~700-line parallel reimplementation of show's outdated logic with its
own classifier, renderer, JSON shape, and platform predicate. Collapse
it into a thin proxy that builds a ShowArgs from OutdatedArgs and calls
show::execute, mirroring OutdatedCommand::execute field-for-field.
This restores show as the single source of truth for rendering, JSON
fields, --strict, and the mutual-exclusion checks. Surfaced gaps in
show.rs (--major-only/--minor-only/--patch-only filtering, --sort-by-age,
JSON enrichment with homepage/source/time/abandoned) are deferred per
the plan.
Diffstat (limited to 'crates/mozart/src/commands/check_platform_reqs.rs')
0 files changed, 0 insertions, 0 deletions
