nrip 0.8.9

Safe rm with a graveyard (MVP: rm, ls, prune, resurrect)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use assert_cmd::prelude::*;
use predicates::prelude::*;
use std::process::Command;

#[cfg(unix)]
#[test]
fn refuses_root_without_force() -> Result<(), Box<dyn std::error::Error>> {
    Command::cargo_bin("nrip")?
        .arg("/")
        .assert()
        .failure()
        .stderr(predicate::str::contains("refusé").or(predicate::str::contains("denied")));
    Ok(())
}