Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
REVIEW
Lorenz Leutgeb committed 6 months ago
commit 9519e76b1e5c4d559f89cff675912b106de24ba7
parent 61f15143126676aebc9c675dbdcfebb6533c34e8
1 file changed +20 -10
modified crates/radicle-cli/src/commands/inspect/args.rs
@@ -7,34 +7,44 @@ the current repository is inspected.

#[derive(Debug, Parser)]
#[group(multiple = false)]
-
pub(crate) struct Target {
-
    /// Return the repository identifier (RID)
+
pub(crate) struct TargetArgs {
+
    /// Inspect the repository's delegates
    #[arg(long)]
-
    pub(crate) rid: bool,
+
    pub(crate) delegates: bool,
+

+
    /// Show the history of the repository identity document
+
    #[arg(long)]
+
    pub(crate) history: bool,
+

+
    /// Inspect the identity document
+
    #[arg(long)]
+
    pub(crate) identity: bool,

    /// Inspect the repository's identity payload
    #[arg(long)]
    pub(crate) payload: bool,

+
    /// Inspect the repository's seeding policy
+
    #[arg(long)]
+
    pub(crate) policy: bool,
+

    /// Inspect the repository's refs on the local device
    #[arg(long)]
    pub(crate) refs: bool,

-
    /// Inspect the values of `rad/sigrefs` for all remotes of this repository
+
    /// Return the repository identifier (RID)
    #[arg(long)]
-
    pub(crate) sigrefs: bool,
+
    pub(crate) rid: bool,

-
    /// Inspect the identity document
+
    /// Inspect the values of `rad/sigrefs` for all remotes of this repository
    #[arg(long)]
-
    pub(crate) identity: bool,
+
    pub(crate) sigrefs: bool,

    /// Inspect the repository's visibility
    #[arg(long)]
    pub(crate) visibility: bool,
+
}

-
    /// Inspect the repository's delegates
-
    #[arg(long)]
-
    pub(crate) delegates: bool,

    /// Inspect the repository's seeding policy
    #[arg(long)]