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-core/src/lib.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-core/src/lib.rs')
| -rw-r--r-- | crates/mozart-core/src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/mozart-core/src/lib.rs b/crates/mozart-core/src/lib.rs index 74f3512..ab6bfe0 100644 --- a/crates/mozart-core/src/lib.rs +++ b/crates/mozart-core/src/lib.rs @@ -5,7 +5,10 @@ pub mod exit_code; pub mod factory; pub mod http; pub mod package; +pub mod package_info; +pub mod package_sorter; pub mod platform; +pub mod repository_utils; pub mod suggest; pub mod validation; pub mod version_bumper; |
