cli: Improve `rad init` error when not in Git repo
added radicle-cli/examples/rad-init-no-git.md
@@ -0,0 +1,7 @@
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified radicle-cli/src/commands/init.rs
@@ -180,6 +180,13 @@ pub fn init(options: Options, profile: &profile::Profile) -> anyhow::Result<()>
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -195,7 +202,6 @@ pub fn init(options: Options, profile: &profile::Profile) -> anyhow::Result<()>
|
|
|
|
|
|
| - | |
|
|
|
|
|
modified radicle-cli/tests/commands.rs
@@ -128,6 +128,21 @@ fn rad_init() {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|