aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/install_command.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-22 17:53:13 +0900
committernsfisis <nsfisis@gmail.com>2026-08-22 17:53:13 +0900
commitec5f3292ac324789298c3a12972f8f78b688ca24 (patch)
tree44580ee521df4b0416fcafa9089695c5bc550270 /crates/shirabe/src/command/install_command.rs
parent7286ee29637dbc694f769b618259eb9f75bab0fa (diff)
downloadphp-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/install_command.rs')
-rw-r--r--crates/shirabe/src/command/install_command.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/shirabe/src/command/install_command.rs b/crates/shirabe/src/command/install_command.rs
index 1431fb57..7c8ce7af 100644
--- a/crates/shirabe/src/command/install_command.rs
+++ b/crates/shirabe/src/command/install_command.rs
@@ -71,7 +71,7 @@ impl Command for InstallCommand {
InputOption::new("apcu-autoloader-prefix", None, Some(InputOption::VALUE_REQUIRED), "Use a custom prefix for the APCu autoloader cache. Implicitly enables --apcu-autoloader", None).unwrap().into(),
InputOption::new("ignore-platform-req", None, Some(InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY), "Ignore a specific platform requirement (php & ext- packages).", None).unwrap().into(),
InputOption::new("ignore-platform-reqs", None, Some(InputOption::VALUE_NONE), "Ignore all platform requirements (php & ext- packages).", None).unwrap().into(),
- InputArgument::new("packages", Some(InputArgument::IS_ARRAY | InputArgument::OPTIONAL), "Should not be provided, use composer require instead to add a given package to composer.json.", None).unwrap().into(),
+ InputArgument::new("packages", Some(InputArgument::IS_ARRAY | InputArgument::OPTIONAL), "Should not be provided, use shirabe require instead to add a given package to composer.json.", None).unwrap().into(),
]);
self.set_help(
"The <info>install</info> command reads the composer.lock file from\n\
@@ -107,7 +107,7 @@ impl Command for InstallCommand {
let args_vec: Vec<String> = args.as_array().map(<[String]>::to_vec).unwrap_or_default();
if !args_vec.is_empty() {
io.write_error(&format!(
- "<error>Invalid argument {}. Use \"composer require {}\" instead to add packages to your composer.json.</error>",
+ "<error>Invalid argument {}. Use \"shirabe require {}\" instead to add packages to your composer.json.</error>",
args_vec.join(" "),
args_vec.join(" ")
));
@@ -120,7 +120,7 @@ impl Command for InstallCommand {
.as_bool()
.unwrap_or(false)
{
- io.write_error("<error>Invalid option \"--no-install\". Use \"composer update --no-install\" instead if you are trying to update the composer.lock file.</error>");
+ io.write_error("<error>Invalid option \"--no-install\". Use \"shirabe update --no-install\" instead if you are trying to update the composer.lock file.</error>");
return Ok(1);
}