quick-flash 0.3.2

Flash centrally hosted firmware binaries with one command
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14

pub fn read_line() -> Result<String, std::io::Error> {
    let mut buffer = String::new();
    std::io::stdin().read_line(&mut buffer)?;
    let line = buffer.trim().to_string();
    if line.is_empty() {
        Err(std::io::Error::new(
            std::io::ErrorKind::InvalidInput,
            "Empty input",
        ))
    } else {
        Ok(line)
    }
}