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/command/diagnose_command.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/command/diagnose_command.rs')
| -rw-r--r-- | crates/shirabe/src/command/diagnose_command.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/shirabe/src/command/diagnose_command.rs b/crates/shirabe/src/command/diagnose_command.rs index 0390cefb..d0448507 100644 --- a/crates/shirabe/src/command/diagnose_command.rs +++ b/crates/shirabe/src/command/diagnose_command.rs @@ -434,7 +434,7 @@ impl DiagnoseCommand { && te.get_code() == 401 { return Ok(CheckResult::Message(format!( - "<comment>The oauth token for {} seems invalid, run \"composer config --global --unset github-oauth.{}\" to remove it</comment>", + "<comment>The oauth token for {} seems invalid, run \"shirabe config --global --unset github-oauth.{}\" to remove it</comment>", domain, domain ))); } @@ -559,7 +559,7 @@ impl DiagnoseCommand { if !errors.is_empty() { errors.push( - "<error>Run composer self-update --update-keys to set them up</error>".to_string(), + "<error>Run shirabe self-update --update-keys to set them up</error>".to_string(), ); } @@ -610,7 +610,7 @@ impl DiagnoseCommand { .to_string(); if composer::VERSION != latest_version && composer::VERSION != "@package_version@" { return Ok(CheckResult::Message(format!( - "<comment>You are not running the latest {} version, run `composer self-update` to update ({} => {})</comment>", + "<comment>You are not running the latest {} version, run `shirabe self-update` to update ({} => {})</comment>", versions_util.get_channel()?, composer::VERSION, latest_version @@ -1489,7 +1489,7 @@ impl Command for DiagnoseCommand { Err(e) => { if let Some(te) = e.catch::<TransportException>() { if te.get_code() == 401 { - self.output_result(CheckResult::Message("<comment>The oauth token for github.com seems invalid, run \"composer config --global --unset github-oauth.github.com\" to remove it</comment>".to_string())); + self.output_result(CheckResult::Message("<comment>The oauth token for github.com seems invalid, run \"shirabe config --global --unset github-oauth.github.com\" to remove it</comment>".to_string())); } else { self.output_result(CheckResult::Message(format!( "<error>[{}] {}</error>", |
