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/src/commands/update.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/mozart/src/commands/update.rs') diff --git a/crates/mozart/src/commands/update.rs b/crates/mozart/src/commands/update.rs index 2e93a0c..92a998d 100644 --- a/crates/mozart/src/commands/update.rs +++ b/crates/mozart/src/commands/update.rs @@ -7,7 +7,7 @@ use mozart_registry::resolver::{ self, LockedPackageInfo, PlatformConfig, ResolveRequest, ResolvedPackage, }; -#[derive(Args)] +#[derive(Args, Default)] pub struct UpdateArgs { /// Package(s) to update pub packages: Vec, -- cgit v1.3.1