From 0b5d333083f1317391338d3aa67b1290e93922cc Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 21 Feb 2026 10:09:58 +0900 Subject: feat(require): implement require command with Packagist version resolution Add the require command that updates composer.json with new package dependencies. When no version constraint is specified, the best version is resolved from the Packagist p2 API based on minimum-stability. Includes packagist API client, version comparison/stability detection, and RawPackageData deserialization support for roundtrip editing. Co-Authored-By: Claude Opus 4.6 --- crates/mozart/src/console.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/mozart/src/console.rs') diff --git a/crates/mozart/src/console.rs b/crates/mozart/src/console.rs index 07eaf67..863e9ba 100644 --- a/crates/mozart/src/console.rs +++ b/crates/mozart/src/console.rs @@ -51,7 +51,7 @@ impl Console { } pub fn error(&self, msg: &str) { - eprintln!("{}", console::error(msg)); + eprintln!("{}", error(msg)); } pub fn ask(&self, prompt: &str, default: &str) -> String { -- cgit v1.3.1