Skip to main content

radicle_cli/commands/ls/
args.rs

1use clap::Parser;
2
3const ABOUT: &str = "List repositories";
4const LONG_ABOUT: &str = r#"
5By default, this command shows you all repositories that you have forked or initialized.
6If you wish to see all seeded repositories, use the `--seeded` option.
7"#;
8
9#[derive(Debug, Parser)]
10#[command(about = ABOUT, long_about = LONG_ABOUT, disable_version_flag = true)]
11pub struct Args {
12    /// Show only private repositories
13    #[arg(long, conflicts_with = "public")]
14    pub(super) private: bool,
15    /// Show only public repositories
16    #[arg(long)]
17    pub(super) public: bool,
18    /// Show all seeded repositories
19    #[arg(short, long)]
20    pub(super) seeded: bool,
21    /// Show all repositories in storage
22    #[arg(short, long)]
23    pub(super) all: bool,
24    /// Verbose output
25    #[arg(short, long)]
26    pub(super) verbose: bool,
27}