aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/run_script_command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/command/run_script_command.rs')
-rw-r--r--crates/shirabe/src/command/run_script_command.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/shirabe/src/command/run_script_command.rs b/crates/shirabe/src/command/run_script_command.rs
index c256eea2..26e73d6d 100644
--- a/crates/shirabe/src/command/run_script_command.rs
+++ b/crates/shirabe/src/command/run_script_command.rs
@@ -209,7 +209,12 @@ impl Command for RunScriptCommand {
let io = self.get_io();
let script = io.select(
"Script to run: ".to_string(),
- options.keys().cloned().collect(),
+ PhpMixed::List(
+ options
+ .keys()
+ .map(|k| PhpMixed::String(k.clone()))
+ .collect(),
+ ),
PhpMixed::String(String::new()),
PhpMixed::Int(1),
"Invalid script name \"%s\"".to_string(),