diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-12 01:01:35 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-12 01:01:43 +0900 |
| commit | 1e44f5723e4c0e0903d00a61f254901e612fe5e1 (patch) | |
| tree | 9c2e1eec364bbf6418a4072ee7767b04c3df0297 /crates/shirabe/src/command/repository_command.rs | |
| parent | ddf0a624145b618c05c2ee47414545b99b685f37 (diff) | |
| download | php-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/repository_command.rs')
| -rw-r--r-- | crates/shirabe/src/command/repository_command.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crates/shirabe/src/command/repository_command.rs b/crates/shirabe/src/command/repository_command.rs index a44df0d..3e0292a 100644 --- a/crates/shirabe/src/command/repository_command.rs +++ b/crates/shirabe/src/command/repository_command.rs @@ -74,24 +74,24 @@ impl RepositoryCommand { let action = strtolower( &input .borrow() - .get_argument("action") + .get_argument("action")? .as_string() .unwrap_or("") .to_string(), ); let name = input .borrow() - .get_argument("name") + .get_argument("name")? .as_string() .map(|s| s.to_string()); let arg1 = input .borrow() - .get_argument("arg1") + .get_argument("arg1")? .as_string() .map(|s| s.to_string()); let arg2 = input .borrow() - .get_argument("arg2") + .get_argument("arg2")? .as_string() .map(|s| s.to_string()); @@ -154,12 +154,12 @@ impl RepositoryCommand { let before = input .borrow() - .get_option("before") + .get_option("before")? .as_string() .map(|s| s.to_string()); let after = input .borrow() - .get_option("after") + .get_option("after")? .as_string() .map(|s| s.to_string()); if before.is_some() && after.is_some() { @@ -190,7 +190,7 @@ impl RepositoryCommand { let append = input .borrow() - .get_option("append") + .get_option("append")? .as_bool() .unwrap_or(false); self.config_source.as_mut().unwrap().add_repository( @@ -291,7 +291,7 @@ impl RepositoryCommand { if ["packagist", "packagist.org"].contains(&name_str) { let append = input .borrow() - .get_option("append") + .get_option("append")? .as_bool() .unwrap_or(false); self.config_source.as_mut().unwrap().add_repository( |
