radicle_cli/commands/clean/
args.rs

1use clap::Parser;
2
3use radicle::prelude::RepoId;
4
5pub const ABOUT: &str = "Remove all remotes from a repository";
6
7const LONG_ABOUT: &str = r#"
8Removes all remotes from a repository, as long as they are not the
9local operator or a delegate of the repository.
10
11Note that remotes will still be fetched as long as they are
12followed and/or the follow scope is "all".
13"#;
14
15#[derive(Debug, Parser)]
16#[command(about = ABOUT, long_about = LONG_ABOUT, disable_version_flag = true)]
17pub struct Args {
18    /// Operate on the given repository
19    #[arg(value_name = "RID")]
20    pub(super) repo: RepoId,
21
22    /// Do not ask for confirmation before removal
23    #[arg(long)]
24    pub(super) no_confirm: bool,
25}