Skip to main content

radicle_cli/commands/self/
args.rs

1use clap::Parser;
2
3const ABOUT: &str = "Show information about your identity and device";
4
5#[derive(Debug, Parser)]
6#[command(about = ABOUT, disable_version_flag = true)]
7#[group(multiple = false)]
8pub struct Args {
9    /// Show your DID
10    #[arg(long)]
11    pub(super) did: bool,
12    /// Show your Node alias
13    #[arg(long)]
14    pub(super) alias: bool,
15    /// Show your Node identifier
16    #[arg(long, hide(true))]
17    pub(super) nid: bool,
18    /// Show your Radicle home
19    #[arg(long)]
20    pub(super) home: bool,
21    /// Show the location of your configuration file
22    #[arg(long)]
23    pub(super) config: bool,
24    /// Show your public key in OpenSSH format
25    #[arg(long)]
26    pub(super) ssh_key: bool,
27    /// Show your public key fingerprint in OpenSSH format
28    #[arg(long)]
29    pub(super) ssh_fingerprint: bool,
30}