radicle_cli/commands/unseed/
args.rs

1use clap::Parser;
2use radicle::prelude::RepoId;
3
4pub(crate) const ABOUT: &str = "Remove repository seeding policies";
5
6const LONG_ABOUT: &str = r#"
7The `unseed` command removes the seeding policy, if found,
8for the given repositories."#;
9
10#[derive(Debug, Parser)]
11#[command(about = ABOUT, long_about = LONG_ABOUT, disable_version_flag = true)]
12pub struct Args {
13    /// ID of the repository to remove the seeding policy for (may be repeated)
14    #[arg(value_name = "RID", required = true, action = clap::ArgAction::Append)]
15    pub rids: Vec<RepoId>,
16}