requestty 0.6.3

An easy-to-use collection of interactive cli prompts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::process::Command;

fn main() {
    requestty::questions![Editor {
        name: "name",
        default: "hello world",
        extension: ".rs",
        editor: Command::new("vim"),
        on_esc: requestty::OnEsc::Terminate,
        transform: |_, _, _| Ok(()),
        validate: |_, _| Ok(()),
        filter: |t, _| t,
    }];
}