diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-22 17:53:13 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-22 17:53:13 +0900 |
| commit | ec5f3292ac324789298c3a12972f8f78b688ca24 (patch) | |
| tree | 44580ee521df4b0416fcafa9089695c5bc550270 /crates/shirabe/src/installer.rs | |
| parent | 7286ee29637dbc694f769b618259eb9f75bab0fa (diff) | |
| download | php-shirabe-ec5f3292ac324789298c3a12972f8f78b688ca24.tar.gz php-shirabe-ec5f3292ac324789298c3a12972f8f78b688ca24.tar.zst php-shirabe-ec5f3292ac324789298c3a12972f8f78b688ca24.zip | |
feat(cli): tell the user to run `shirabe`, not `composer`
Messages that instruct the user to run a command named the Composer
binary. Shirabe ships as its own binary, so the hints now name it.
File names (composer.json, composer.lock), the "composer" repository
type and prose about Composer itself are untouched. The installer and
functional integration fixtures live in the Composer submodule and
cannot be edited, so their expected output is normalized on load.
Diffstat (limited to 'crates/shirabe/src/installer.rs')
| -rw-r--r-- | crates/shirabe/src/installer.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/shirabe/src/installer.rs b/crates/shirabe/src/installer.rs index d1e38542..ca1ca380 100644 --- a/crates/shirabe/src/installer.rs +++ b/crates/shirabe/src/installer.rs @@ -453,7 +453,7 @@ impl Installer { (if 1 == funding_count { "is" } else { "are" }), )); self.io - .write_error("<info>Use the `composer fund` command to find out more!</info>"); + .write_error("<info>Use the `shirabe fund` command to find out more!</info>"); } } @@ -590,7 +590,7 @@ impl Installer { { self.io.write_error3( &format!( - "<error>Cannot update {} without a lock file present. Run `composer update` to generate a lock file.</error>", + "<error>Cannot update {} without a lock file present. Run `shirabe update` to generate a lock file.</error>", if self.update_mirrors { "lock file information" } else { @@ -1052,7 +1052,7 @@ impl Installer { if !self.locker.borrow_mut().is_fresh()? { self.io.write_error3( - "<warning>Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `composer update` or `composer update <package name>`.</warning>", + "<warning>Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run `shirabe update` or `shirabe update <package name>`.</warning>", true, io_interface::QUIET, ); @@ -1129,7 +1129,7 @@ impl Installer { // installing the locked packages on this platform resulted in lock modifying operations, there wasn't a conflict, but the lock file as-is seems to not work on this system if !lock_transaction.get_operations().is_empty() { self.io.write_error3( - "<error>Your lock file cannot be installed on this system without changes. Please run composer update.</error>", + "<error>Your lock file cannot be installed on this system without changes. Please run shirabe update.</error>", true, io_interface::QUIET, ); @@ -1138,7 +1138,7 @@ impl Installer { } } Err(e) => { - let err = "Your lock file does not contain a compatible set of packages. Please run composer update."; + let err = "Your lock file does not contain a compatible set of packages. Please run shirabe update."; let pretty_problem = e.get_pretty_string( &repository_set, &request, |
