aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/archive_command.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-05-22 01:43:34 +0900
committernsfisis <nsfisis@gmail.com>2026-05-22 01:44:05 +0900
commit6739da8a8e271a82d1bf8ca79bba58640ae6e743 (patch)
treece397b02662cf3c101cb36545b0a6c94ddc21826 /crates/shirabe/src/command/archive_command.rs
parent0b06f54103490e3ce5658e82bbc0119633e26cd8 (diff)
downloadphp-shirabe-6739da8a8e271a82d1bf8ca79bba58640ae6e743.tar.gz
php-shirabe-6739da8a8e271a82d1bf8ca79bba58640ae6e743.tar.zst
php-shirabe-6739da8a8e271a82d1bf8ca79bba58640ae6e743.zip
refactor(php-shim): remove unnecessary methods
Diffstat (limited to 'crates/shirabe/src/command/archive_command.rs')
-rw-r--r--crates/shirabe/src/command/archive_command.rs13
1 files changed, 5 insertions, 8 deletions
diff --git a/crates/shirabe/src/command/archive_command.rs b/crates/shirabe/src/command/archive_command.rs
index c823860..01da89d 100644
--- a/crates/shirabe/src/command/archive_command.rs
+++ b/crates/shirabe/src/command/archive_command.rs
@@ -90,7 +90,7 @@ impl ArchiveCommand {
let format = input
.get_option("format")
- .as_string_opt()
+ .as_string()
.map(|s| s.to_string())
.unwrap_or_else(|| {
config
@@ -103,7 +103,7 @@ impl ArchiveCommand {
let dir = input
.get_option("dir")
- .as_string_opt()
+ .as_string()
.map(|s| s.to_string())
.unwrap_or_else(|| {
config
@@ -121,18 +121,15 @@ impl ArchiveCommand {
&config,
input
.get_argument("package")
- .as_string_opt()
+ .as_string()
.map(|s| s.to_string()),
input
.get_argument("version")
- .as_string_opt()
+ .as_string()
.map(|s| s.to_string()),
&format,
&dir,
- input
- .get_option("file")
- .as_string_opt()
- .map(|s| s.to_string()),
+ input.get_option("file").as_string().map(|s| s.to_string()),
input
.get_option("ignore-filters")
.as_bool()