aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/src/commands/suggests.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-08 21:33:52 +0900
committernsfisis <nsfisis@gmail.com>2026-05-08 21:33:52 +0900
commit6d853db4e74f07abe480ab9532c914ba94623dc0 (patch)
treee46ba04a9633cd3131a01e443698c2cfc2b15441 /crates/mozart/src/commands/suggests.rs
parentf20a342ecb96734418d0817f841ea14fd9a448e3 (diff)
downloadphp-mozart-6d853db4e74f07abe480ab9532c914ba94623dc0.tar.gz
php-mozart-6d853db4e74f07abe480ab9532c914ba94623dc0.tar.zst
php-mozart-6d853db4e74f07abe480ab9532c914ba94623dc0.zip
fix(create-project): align with Composer's CreateProjectCommand pipeline
Split the inline 370-line execute() into execute / install_project / install_root_package, mirroring Composer's three-method shape and argument order. Replace the bespoke caret/tilde/wildcard semver helpers with mozart_semver::VersionConstraint, harden stability inference (handle the @stability suffix and reject invalid values), and align user-facing wording ("Creating a ...", "Cannot create project directory ...", "Could not find package ...") with Composer's strings. Add the --ask directory prompt, the interactive VCS-removal prompt, the empty-target-directory bail, and the COMPOSER_ROOT_VERSION / COMPOSER env-var handling that the PHP command does after extraction. Custom repositories, the canonical Installer pathway, the signal handler, and script events are still deferred — see .ken/command_compat_plan/create_project.md.
Diffstat (limited to 'crates/mozart/src/commands/suggests.rs')
0 files changed, 0 insertions, 0 deletions