cli: Show full path in `rad init`
Instead of showing a '.'
This commit is contained in:
parent
9c9bbbe7bb
commit
9c96b46c59
|
|
@ -3,7 +3,7 @@ Alice can initialize a *private* repo using the `--private` flag.
|
|||
```
|
||||
$ rad init --name heartwood --description "radicle heartwood protocol & stack" --no-confirm --private
|
||||
|
||||
Initializing private radicle 👾 repository in .
|
||||
Initializing private radicle 👾 repository in [..]
|
||||
|
||||
✓ Repository heartwood created.
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ When initializing a repository without any peer connections, we get this output:
|
|||
```
|
||||
$ rad init --name heartwood --description "Radicle Heartwood Protocol & Stack" --no-confirm --public --scope followed
|
||||
|
||||
Initializing public radicle 👾 repository in .
|
||||
Initializing public radicle 👾 repository in [..]
|
||||
|
||||
✓ Repository heartwood created.
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ Let's try initializing a new repository with a preferred seed configured.
|
|||
```
|
||||
$ rad init --name heartwood --description "Radicle Heartwood Protocol & Stack" --no-confirm --public --scope followed
|
||||
|
||||
Initializing public radicle 👾 repository in .
|
||||
Initializing public radicle 👾 repository in [..]
|
||||
|
||||
✓ Repository heartwood created.
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ as the node will keep attempting to sync in the background.
|
|||
```
|
||||
$ rad init --name heartwood --description "Radicle Heartwood Protocol & Stack" --no-confirm --public --scope followed
|
||||
|
||||
Initializing public radicle 👾 repository in .
|
||||
Initializing public radicle 👾 repository in [..]
|
||||
|
||||
✓ Repository heartwood created.
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ the `init` command:
|
|||
```
|
||||
$ rad init --name heartwood --description "Radicle Heartwood Protocol & Stack" --no-confirm --public --scope followed
|
||||
|
||||
Initializing public radicle 👾 repository in .
|
||||
Initializing public radicle 👾 repository in [..]
|
||||
|
||||
✓ Repository heartwood created.
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ Then we initialize.
|
|||
```
|
||||
$ rad init --name heartwood --description "Heartwood Protocol & Stack" --no-confirm --public
|
||||
|
||||
Initializing public radicle 👾 repository in .
|
||||
Initializing public radicle 👾 repository in [..]
|
||||
|
||||
✓ Repository heartwood created.
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ To create your first radicle repository, navigate to a git repository, and run t
|
|||
```
|
||||
$ rad init --name heartwood --description "Radicle Heartwood Protocol & Stack" --no-confirm --public -v
|
||||
|
||||
Initializing public radicle 👾 repository in .
|
||||
Initializing public radicle 👾 repository in [..]
|
||||
|
||||
✓ Repository heartwood created.
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ Alice creates a repository and Bob clones it.
|
|||
``` ~alice
|
||||
$ rad init --name heartwood --description "radicle heartwood protocol & stack" --no-confirm --public
|
||||
|
||||
Initializing public radicle 👾 repository in .
|
||||
Initializing public radicle 👾 repository in [..]
|
||||
|
||||
✓ Repository heartwood created.
|
||||
|
||||
|
|
|
|||
|
|
@ -214,17 +214,13 @@ pub fn init(options: Options, profile: &profile::Profile) -> anyhow::Result<()>
|
|||
.ok_or_else(|| anyhow!("repository head must point to a commit"))?;
|
||||
|
||||
term::headline(format!(
|
||||
"Initializing{}radicle 👾 repository in {}",
|
||||
"Initializing{}radicle 👾 repository in {}..",
|
||||
if let Some(visibility) = &options.visibility {
|
||||
term::format::spaced(term::format::visibility(visibility))
|
||||
} else {
|
||||
term::format::default(" ").into()
|
||||
},
|
||||
if path == cwd {
|
||||
term::format::tertiary(".").to_string()
|
||||
} else {
|
||||
term::format::tertiary(path.display()).to_string()
|
||||
}
|
||||
term::format::dim(path.display())
|
||||
));
|
||||
|
||||
let name = match options.name {
|
||||
|
|
|
|||
Loading…
Reference in New Issue