Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
REVIEW
Fintan Halpenny committed 6 months ago
commit f753216c49d18f5bea0881edfdbc01961f9e286b
parent 5a70ce853f12fe61c5eac27229bd9cd37f14a23f
2 files changed +6 -32
modified crates/radicle-cli/src/commands/help.rs
@@ -57,7 +57,10 @@ const COMMANDS: &[CommandItem] = &[
        about: crate::commands::fork::ABOUT,
    },
    CommandItem::Lexopt(crate::commands::help::HELP),
-
    CommandItem::Lexopt(crate::commands::id::HELP),
+
    CommandItem::Clap {
+
        name: "id",
+
        about: crate::commands::id::ABOUT,
+
    },
    CommandItem::Clap {
        name: "init",
        about: crate::commands::init::ABOUT,
modified crates/radicle-cli/src/commands/id.rs
@@ -18,41 +18,12 @@ use radicle_term::Element;
use crate::git::unified_diff::Encode as _;
use crate::git::Rev;
use crate::terminal as term;
-
use crate::terminal::args::{Error, Help};
+
use crate::terminal::args::Error;
use crate::terminal::patch::Message;

pub use args::Args;
use args::Command;
-

-
pub const HELP: Help = Help {
-
    name: "id",
-
    description: "Manage repository identities",
-
    version: env!("RADICLE_VERSION"),
-
    usage: r#"
-
Usage
-

-
    rad id list [<option>...]
-
    rad id update [--title <string>] [--description <string>]
-
                  [--delegate <did>] [--rescind <did>]
-
                  [--threshold <num>] [--visibility <private | public>]
-
                  [--allow <did>] [--disallow <did>]
-
                  [--no-confirm] [--payload <id> <key> <val>...] [--edit] [<option>...]
-
    rad id edit <revision-id> [--title <string>] [--description <string>] [<option>...]
-
    rad id show <revision-id> [<option>...]
-
    rad id <accept | reject | redact> <revision-id> [<option>...]
-

-
    The *rad id* command is used to manage and propose changes to the
-
    identity of a Radicle repository.
-

-
    See the rad-id(1) man page for more information.
-

-
Options
-

-
    --repo <rid>           Repository (defaults to the current repository)
-
    --quiet, -q            Don't print anything
-
    --help                 Print help
-
"#,
-
};
+
pub(crate) use args::ABOUT;

pub fn run(args: Args, ctx: impl term::Context) -> anyhow::Result<()> {
    let profile = ctx.profile()?;