exists.rs 381 B

12345678910111213141516
  1. use clap::{App, SubCommand};
  2. use cmd::arg::{ArgUrl, CmdArg};
  3. /// The exists command definition.
  4. pub struct CmdExists;
  5. impl CmdExists {
  6. pub fn build<'a, 'b>() -> App<'a, 'b> {
  7. SubCommand::with_name("exists")
  8. .about("Check whether a remote file exists")
  9. .visible_alias("e")
  10. .alias("exist")
  11. .arg(ArgUrl::build())
  12. }
  13. }