Skip to content

Commit

Permalink
updated input_function_args_type()
Browse files Browse the repository at this point in the history
  • Loading branch information
FroVolod committed Jan 4, 2024
1 parent 21f43b7 commit e8aadd8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ impl std::fmt::Display for FunctionArgsTypeDiscriminants {

pub fn input_function_args_type() -> color_eyre::eyre::Result<Option<FunctionArgsType>> {
let variants = FunctionArgsTypeDiscriminants::iter().collect::<Vec<_>>();
let selected = Select::new("How would you like to proceed?", variants).prompt()?;
let selected = Select::new(
"How would you like to pass the function arguments?",
variants,
)
.prompt()?;
match selected {
FunctionArgsTypeDiscriminants::JsonArgs => Ok(Some(FunctionArgsType::JsonArgs)),
FunctionArgsTypeDiscriminants::TextArgs => Ok(Some(FunctionArgsType::TextArgs)),
Expand Down

0 comments on commit e8aadd8

Please sign in to comment.