cli: Improve `rad init` help output
This commit is contained in:
parent
04d70f27d8
commit
6fcdb95f0a
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue