This commit is contained in:
Michael Zhang 2019-12-26 19:10:50 -06:00
parent 3f5dbf009d
commit 8ddfd41fa6
No known key found for this signature in database
GPG key ID: 5BAEFE5D04F0CE6C
4 changed files with 6 additions and 20 deletions

View file

@ -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
View file

@ -88,7 +88,7 @@ dependencies = [
[[package]] [[package]]
name = "garbage" name = "garbage"
version = "0.1.2" version = "0.1.3"
dependencies = [ dependencies = [
"anyhow 1.0.25 (registry+https://github.com/rust-lang/crates.io-index)", "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)", "chrono 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)",

View file

@ -3,8 +3,8 @@ use std::path::{Path, PathBuf};
use walkdir::{DirEntry, WalkDir}; use walkdir::{DirEntry, WalkDir};
use crate::errors::Error; use crate::Error;
use crate::info::TrashInfo; use crate::TrashInfo;
use crate::XDG; use crate::XDG;
#[derive(Clone, Debug)] #[derive(Clone, Debug)]

View file

@ -37,9 +37,9 @@ enum Command {
#[structopt(long = "recursive", short = "r")] #[structopt(long = "recursive", short = "r")]
recursive: bool, recursive: bool,
/// -f to stay compatible with GNU rm /// Suppress prompts/messages
#[structopt(long = "force", short = "f")] #[structopt(long = "force", short = "f")]
_force: bool, force: bool,
}, },
#[structopt(name = "restore")] #[structopt(name = "restore")]
@ -74,7 +74,7 @@ fn main() -> Result<(), Error> {
} }
} }
Command::Put { Command::Put {
paths, recursive, .. paths, recursive, force
} => { } => {
ops::put(paths, recursive); ops::put(paths, recursive);
} }