Function quest::editor [−][src]
pub fn editor(name: &str, message: &[u8]) -> Result<String>
Ask the user to enter some text through their editor.
We'll check the VISUAL
environment variable, then EDITOR
, and then
finally default to vi
. The message will be the initial contents of the
file, and the result will be the final contents of the file, after the user
has quit their editor.