From ec5f3292ac324789298c3a12972f8f78b688ca24 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 22 Aug 2026 17:53:13 +0900 Subject: 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. --- crates/shirabe/src/command/diagnose_command.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/shirabe/src/command/diagnose_command.rs') 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!( - "The oauth token for {} seems invalid, run \"composer config --global --unset github-oauth.{}\" to remove it", + "The oauth token for {} seems invalid, run \"shirabe config --global --unset github-oauth.{}\" to remove it", domain, domain ))); } @@ -559,7 +559,7 @@ impl DiagnoseCommand { if !errors.is_empty() { errors.push( - "Run composer self-update --update-keys to set them up".to_string(), + "Run shirabe self-update --update-keys to set them up".to_string(), ); } @@ -610,7 +610,7 @@ impl DiagnoseCommand { .to_string(); if composer::VERSION != latest_version && composer::VERSION != "@package_version@" { return Ok(CheckResult::Message(format!( - "You are not running the latest {} version, run `composer self-update` to update ({} => {})", + "You are not running the latest {} version, run `shirabe self-update` to update ({} => {})", versions_util.get_channel()?, composer::VERSION, latest_version @@ -1489,7 +1489,7 @@ impl Command for DiagnoseCommand { Err(e) => { if let Some(te) = e.catch::() { if te.get_code() == 401 { - self.output_result(CheckResult::Message("The oauth token for github.com seems invalid, run \"composer config --global --unset github-oauth.github.com\" to remove it".to_string())); + self.output_result(CheckResult::Message("The oauth token for github.com seems invalid, run \"shirabe config --global --unset github-oauth.github.com\" to remove it".to_string())); } else { self.output_result(CheckResult::Message(format!( "[{}] {}", -- cgit v1.3.1-4-g156e