wrestic 1.3.0

Restic wrapper built in Rust
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use anyhow::Result;
use color_print::cprintln;
use std::{
    io::{self, BufRead},
    process::Command,
};

pub fn clear() -> Result<()> {
    Command::new("clear").status()?;
    Ok(())
}

pub fn pause() -> Result<()> {
    cprintln!("Press <c>'Enter'</c> to continue...");
    io::stdin().lock().lines().next();
    clear()?;
    Ok(())
}