wtf.
This commit is contained in:
parent
3f5dbf009d
commit
8ddfd41fa6
4 changed files with 6 additions and 20 deletions
14
.github/workflows/rust.yml
vendored
14
.github/workflows/rust.yml
vendored
|
@ -1,14 +0,0 @@
|
|||
name: Rust
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Build
|
||||
run: cargo build --verbose
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -88,7 +88,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "garbage"
|
||||
version = "0.1.2"
|
||||
version = "0.1.3"
|
||||
dependencies = [
|
||||
"anyhow 1.0.25 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"chrono 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
|
|
@ -3,8 +3,8 @@ use std::path::{Path, PathBuf};
|
|||
|
||||
use walkdir::{DirEntry, WalkDir};
|
||||
|
||||
use crate::errors::Error;
|
||||
use crate::info::TrashInfo;
|
||||
use crate::Error;
|
||||
use crate::TrashInfo;
|
||||
use crate::XDG;
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
|
|
|
@ -37,9 +37,9 @@ enum Command {
|
|||
#[structopt(long = "recursive", short = "r")]
|
||||
recursive: bool,
|
||||
|
||||
/// -f to stay compatible with GNU rm
|
||||
/// Suppress prompts/messages
|
||||
#[structopt(long = "force", short = "f")]
|
||||
_force: bool,
|
||||
force: bool,
|
||||
},
|
||||
|
||||
#[structopt(name = "restore")]
|
||||
|
@ -74,7 +74,7 @@ fn main() -> Result<(), Error> {
|
|||
}
|
||||
}
|
||||
Command::Put {
|
||||
paths, recursive, ..
|
||||
paths, recursive, force
|
||||
} => {
|
||||
ops::put(paths, recursive);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue