sndr 0.3.0

Easily and securely share files from the command line. A fully featured Send client (formerly ffsend, rebranded by tarnover).
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use clap::{App, SubCommand};

use crate::cmd::arg::{ArgOwner, ArgUrl, CmdArg};

/// The delete command definition.
pub struct CmdDelete;

impl CmdDelete {
    pub fn build<'a, 'b>() -> App<'a, 'b> {
        SubCommand::with_name("delete")
            .about("Delete a shared file")
            .visible_alias("del")
            .visible_alias("rm")
            .arg(ArgUrl::build())
            .arg(ArgOwner::build())
    }
}