Skip to main content

radicle_cli/commands/checkout/
args.rs

1use clap::Parser;
2use radicle::prelude::{Did, RepoId};
3
4const ABOUT: &str = "Checkout a repository into the local directory";
5const LONG_ABOUT: &str = r#"
6Creates a working copy from a repository in local storage.
7"#;
8
9#[derive(Debug, Parser)]
10#[command(about = ABOUT, long_about = LONG_ABOUT, disable_version_flag = true)]
11pub struct Args {
12    /// Repository ID of the repository to checkout
13    #[arg(value_name = "RID")]
14    pub(super) repo: RepoId,
15
16    /// The DID of the remote peer to checkout
17    #[arg(long, value_name = "DID")]
18    pub(super) remote: Option<Did>,
19
20    /// Don't ask for confirmation during checkout
21    // TODO(erikli): This is obsolete and should be removed
22    #[arg(long)]
23    no_confirm: bool,
24}