From 92fa497cc345118198508fcf948ff650e8902434 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 8 May 2026 20:29:33 +0900 Subject: 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(). --- crates/mozart-core/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/mozart-core/src/lib.rs') 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; -- cgit v1.3.1