20 lines
556 B
Rust
20 lines
556 B
Rust
use clap::{App, SubCommand};
|
|
|
|
use cmd::arg::{ArgOwner, ArgPassword, ArgUrl, CmdArg};
|
|
|
|
/// The password command definition.
|
|
pub struct CmdPassword;
|
|
|
|
impl CmdPassword {
|
|
pub fn build<'a, 'b>() -> App<'a, 'b> {
|
|
SubCommand::with_name("password")
|
|
.about("Change the password of a shared file")
|
|
.visible_alias("pass")
|
|
.visible_alias("p")
|
|
.arg(ArgUrl::build())
|
|
.arg(ArgPassword::build()
|
|
.help("Specify a password, do not prompt"))
|
|
.arg(ArgOwner::build())
|
|
}
|
|
}
|