[confirm(\"This is dangerous - are you sure you want to run it?\")]
requires_confirmation:
echoconfirmed
",
)
.stderr("This is dangerous - are you sure you want to run it? echo confirmed\n")
.stdout("confirmed\n")
.stdin("y")
.run();
}
#[test]
fnconfirm_recipe_with_prompt_too_many_args(){
Test::new()
.justfile(
"
[confirm(\"This is dangerous - are you sure you want to run it?\",\"this second argument is not supported\")]
requires_confirmation:
echoconfirmed
",
)
.stderr("error: Expected ')', but found ','\n ——▶ justfile:1:64\n │\n1 │ [confirm(\"This is dangerous - are you sure you want to run it?\",\"this second argument is not supported\")]\n │ ^\n")