fix: Clarified user text input interaction
This commit is contained in:
1 parent
cf45dc4820
commit
86aa45f0c4
1 file changed
+1
-1
@@ -181,7 +181,7 @@ fn handle_direct_input(args: &Value) -> Result<Value> {
|
|||||||
.and_then(Value::as_str)
|
.and_then(Value::as_str)
|
||||||
.ok_or_else(|| anyhow!("'question' is required"))?;
|
.ok_or_else(|| anyhow!("'question' is required"))?;
|
||||||
|
|
||||||
let answer = Text::new(question).prompt()?;
|
let answer = Text::new(&format!("{question}\nYour answer: ")).prompt()?;
|
||||||
|
|
||||||
Ok(json!({ "answer": answer }))
|
Ok(json!({ "answer": answer }))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user