prompt for show
This commit is contained in:
parent
3ede77cdf5
commit
5d18ed181a
@ -106,7 +106,12 @@ pub fn show(matches: &ArgMatches) -> Result<()> {
|
|||||||
.interact_text()?;
|
.interact_text()?;
|
||||||
notes::show_category(&category)?;
|
notes::show_category(&category)?;
|
||||||
}
|
}
|
||||||
false => return Err(anyhow!("No option is given. Abort.")),
|
false => {
|
||||||
|
let s: String = Input::with_theme(&ColorfulTheme::default())
|
||||||
|
.with_prompt("String to search")
|
||||||
|
.interact_text()?;
|
||||||
|
notes::show(&s)?;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user