pijul 0.7.2

A patch-based distributed version control system, easy to use and fast. Command-line interface.
use commands::fs_operation;
use commands::fs_operation::Operation;
use commands::{StaticSubcommand, default_explain};
use clap::{SubCommand, ArgMatches, Arg};
use error;

pub fn invocation() -> StaticSubcommand {
    return SubCommand::with_name("remove")
        .about("remove file from the repository")
        .arg(Arg::with_name("files")
            .multiple(true)
            .help("Files to remove from the repository.")
            .required(true))
        .arg(Arg::with_name("repository")
            .long("repository")
            .help("Repository to remove files from.")
            .takes_value(true));
}

pub fn run(args: &ArgMatches) -> Result<(), error::Error> {
    fs_operation::run(args, Operation::Remove)
}

pub fn explain(res: Result<(), error::Error>) {
    default_explain(res)
}