diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-08 20:29:33 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-08 20:29:57 +0900 |
| commit | 92fa497cc345118198508fcf948ff650e8902434 (patch) | |
| tree | 5789f3d74b6ffb79dbcc8f59b012cd359caf9444 /crates/mozart/src/commands/dump_autoload.rs | |
| parent | b286af9ffe78d50b63bf5fda7fc796ab20f2552f (diff) | |
| download | php-mozart-92fa497cc345118198508fcf948ff650e8902434.tar.gz php-mozart-92fa497cc345118198508fcf948ff650e8902434.tar.zst php-mozart-92fa497cc345118198508fcf948ff650e8902434.zip | |
fix(licenses): align with Composer's LicensesCommand pipeline
Drive the command from Composer::require() and route the
(installed | locked) branch through the ported PackageSorter,
RepositoryUtils::filterRequiredPackages, and PackageInfo helpers
in mozart-core. --no-dev for installed packages now filters via
root.require closure instead of dev_package_names membership;
text output annotates the name cell with an OSC 8 hyperlink to
the view-source/homepage URL; summary ties resolve in first-seen
order via IndexMap + stable sort_by_key(Reverse(count)) to mirror
PHP's arsort().
Diffstat (limited to 'crates/mozart/src/commands/dump_autoload.rs')
| -rw-r--r-- | crates/mozart/src/commands/dump_autoload.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/mozart/src/commands/dump_autoload.rs b/crates/mozart/src/commands/dump_autoload.rs index 6f08b2a..0d12220 100644 --- a/crates/mozart/src/commands/dump_autoload.rs +++ b/crates/mozart/src/commands/dump_autoload.rs @@ -3,7 +3,7 @@ use mozart_autoload::AutoloadGeneratorExt; use mozart_core::composer::{AutoloadDumpOptions, Composer, PlatformRequirementFilter}; use mozart_core::{console_format, console_writeln}; -#[derive(Args)] +#[derive(Args, Default)] pub struct DumpAutoloadArgs { /// Optimizes PSR-0 and PSR-4 packages to be loaded with classmaps #[arg(short, long)] |
