fixed input_arg()
This commit is contained in:
parent
527511cc78
commit
e147a52bdf
1 changed files with 2 additions and 1 deletions
|
|
@ -34,12 +34,13 @@ pub fn vec_input_arg(
|
|||
syn::Ident::new(&format!("input_{}", &ident_field), Span::call_site());
|
||||
|
||||
if field.attrs.is_empty() {
|
||||
let promt = &syn::LitStr::new(&ident_field.to_string(), Span::call_site());
|
||||
return quote! {
|
||||
fn #fn_input_arg(
|
||||
_context: &#input_context_dir,
|
||||
) -> color_eyre::eyre::Result<#ty> {
|
||||
Ok(dialoguer::Input::new()
|
||||
.with_prompt("")
|
||||
.with_prompt(#promt)
|
||||
.interact_text()?)
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue