aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/validate_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/validate_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/validate_command.rs')
-rw-r--r--crates/shirabe/src/command/validate_command.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/crates/shirabe/src/command/validate_command.rs b/crates/shirabe/src/command/validate_command.rs
index 73de63b..1d9d036 100644
--- a/crates/shirabe/src/command/validate_command.rs
+++ b/crates/shirabe/src/command/validate_command.rs
@@ -115,7 +115,7 @@ impl ValidateCommand {
) -> Result<i64> {
let file = input
.borrow()
- .get_argument("file")
+ .get_argument("file")?
.as_string()
.map(|s| s.to_string())
.map(Ok)
@@ -134,7 +134,7 @@ impl ValidateCommand {
let validator = ConfigValidator::new(io.clone());
let check_all = if input
.borrow()
- .get_option("no-check-all")
+ .get_option("no-check-all")?
.as_bool()
.unwrap_or(false)
{
@@ -144,17 +144,17 @@ impl ValidateCommand {
};
let check_publish = !input
.borrow()
- .get_option("no-check-publish")
+ .get_option("no-check-publish")?
.as_bool()
.unwrap_or(false);
let check_lock = !input
.borrow()
- .get_option("no-check-lock")
+ .get_option("no-check-lock")?
.as_bool()
.unwrap_or(false);
let check_version = if input
.borrow()
- .get_option("no-check-version")
+ .get_option("no-check-version")?
.as_bool()
.unwrap_or(false)
{
@@ -164,7 +164,7 @@ impl ValidateCommand {
};
let is_strict = input
.borrow()
- .get_option("strict")
+ .get_option("strict")?
.as_bool()
.unwrap_or(false);
let (mut errors, mut publish_errors, mut warnings) =
@@ -183,7 +183,7 @@ impl ValidateCommand {
.unwrap_or(true))
|| input
.borrow()
- .get_option("check-lock")
+ .get_option("check-lock")?
.as_bool()
.unwrap_or(false);
let locker = composer.get_locker().clone();
@@ -221,7 +221,7 @@ impl ValidateCommand {
if input
.borrow()
- .get_option("with-dependencies")
+ .get_option("with-dependencies")?
.as_bool()
.unwrap_or(false)
{