Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: Improve `rad init` help output
cloudhead committed 2 years ago
commit 6fcdb95f0a8a151ecf3272c7e8d05bea0c03e211
parent 04d70f27d854803b3f49c9715749e5338370cfef
2 files changed +19 -6
modified radicle-cli/examples/rad-auth.md
@@ -7,9 +7,12 @@ $ rad auth --alias "alice"
Initializing your radicle 👾 identity

✓ Creating your Ed25519 keypair...
-
✓ Your Radicle DID is did:key:z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi. This identifies your device.
+
✓ Your Radicle DID is did:key:z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi. This identifies your device. Run `rad self` to show it at all times.
+
✓ You're all set.

-
To create a radicle project, run `rad init` from a git repository.
+
To create a radicle project, run `rad init` from a Git repository.
+
To clone a project, run `rad clone <rid>`. For example, `rad clone rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5` clones the Radicle 'heartwood' project.
+
To get a list of all commands, run `rad help`.
```

You can get the above information at all times using the `self` command:
modified radicle-cli/src/commands/auth.rs
@@ -132,15 +132,25 @@ pub fn init(options: Options) -> anyhow::Result<()> {
    }

    term::success!(
-
        "Your Radicle DID is {}. This identifies your device.",
-
        term::format::highlight(profile.did())
+
        "Your Radicle DID is {}. This identifies your device. Run {} to show it at all times.",
+
        term::format::highlight(profile.did()),
+
        term::format::command("rad self")
    );
-

+
    term::success!("You're all set.");
    term::blank();
    term::info!(
-
        "To create a radicle project, run {} from a git repository.",
+
        "To create a radicle project, run {} from a Git repository.",
        term::format::command("rad init")
    );
+
    term::info!(
+
        "To clone a project, run {}. For example, {} clones the Radicle 'heartwood' project.",
+
        term::format::command("rad clone <rid>"),
+
        term::format::command("rad clone rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5")
+
    );
+
    term::info!(
+
        "To get a list of all commands, run {}.",
+
        term::format::command("rad help"),
+
    );

    Ok(())
}