diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-21 10:09:58 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-21 10:09:58 +0900 |
| commit | 0b5d333083f1317391338d3aa67b1290e93922cc (patch) | |
| tree | 3842907fc1b2ac64c925b477b4daf33f529a5869 /crates/mozart/src/console.rs | |
| parent | 999fc4157cf631f967a5adedeccb83ae6d0cb0f8 (diff) | |
| download | php-mozart-0b5d333083f1317391338d3aa67b1290e93922cc.tar.gz php-mozart-0b5d333083f1317391338d3aa67b1290e93922cc.tar.zst php-mozart-0b5d333083f1317391338d3aa67b1290e93922cc.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart/src/console.rs')
| -rw-r--r-- | crates/mozart/src/console.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |
