aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/reinstall_command.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-12 01:01:35 +0900
committernsfisis <nsfisis@gmail.com>2026-06-12 01:01:43 +0900
commit1e44f5723e4c0e0903d00a61f254901e612fe5e1 (patch)
tree9c2e1eec364bbf6418a4072ee7767b04c3df0297 /crates/shirabe/src/command/reinstall_command.rs
parentddf0a624145b618c05c2ee47414545b99b685f37 (diff)
downloadphp-shirabe-1e44f5723e4c0e0903d00a61f254901e612fe5e1.tar.gz
php-shirabe-1e44f5723e4c0e0903d00a61f254901e612fe5e1.tar.zst
php-shirabe-1e44f5723e4c0e0903d00a61f254901e612fe5e1.zip
feat(symfony-console): port Symfony Console and make the workspace compile
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/command/reinstall_command.rs')
-rw-r--r--crates/shirabe/src/command/reinstall_command.rs18
1 files changed, 9 insertions, 9 deletions
diff --git a/crates/shirabe/src/command/reinstall_command.rs b/crates/shirabe/src/command/reinstall_command.rs
index e6cbac1..48f48a5 100644
--- a/crates/shirabe/src/command/reinstall_command.rs
+++ b/crates/shirabe/src/command/reinstall_command.rs
@@ -74,9 +74,9 @@ impl ReinstallCommand {
let mut packages_to_reinstall: Vec<crate::package::PackageInterfaceHandle> = vec![];
let mut package_names_to_reinstall: Vec<String> = vec![];
- let type_option = input.borrow().get_option("type");
+ let type_option = input.borrow().get_option("type")?;
let type_count = type_option.as_list().map_or(0, |l| l.len());
- let packages_arg = input.borrow().get_argument("packages");
+ let packages_arg = input.borrow().get_argument("packages")?;
let packages_count = packages_arg.as_list().map_or(0, |l| l.len());
if type_count > 0 {
@@ -198,13 +198,13 @@ impl ReinstallCommand {
installation_manager.borrow_mut().set_output_progress(
!input
.borrow()
- .get_option("no-progress")
+ .get_option("no-progress")?
.as_bool()
.unwrap_or(false),
);
if input
.borrow()
- .get_option("no-plugins")
+ .get_option("no-plugins")?
.as_bool()
.unwrap_or(false)
{
@@ -245,13 +245,13 @@ impl ReinstallCommand {
if !input
.borrow()
- .get_option("no-autoloader")
+ .get_option("no-autoloader")?
.as_bool()
.unwrap_or(false)
{
let optimize = input
.borrow()
- .get_option("optimize-autoloader")
+ .get_option("optimize-autoloader")?
.as_bool()
.unwrap_or(false)
|| config
@@ -261,7 +261,7 @@ impl ReinstallCommand {
.unwrap_or(false);
let authoritative = input
.borrow()
- .get_option("classmap-authoritative")
+ .get_option("classmap-authoritative")?
.as_bool()
.unwrap_or(false)
|| config
@@ -271,13 +271,13 @@ impl ReinstallCommand {
.unwrap_or(false);
let apcu_prefix = input
.borrow()
- .get_option("apcu-autoloader-prefix")
+ .get_option("apcu-autoloader-prefix")?
.as_string()
.map(|s| s.to_string());
let apcu = apcu_prefix.is_some()
|| input
.borrow()
- .get_option("apcu-autoloader")
+ .get_option("apcu-autoloader")?
.as_bool()
.unwrap_or(false)
|| config