Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli/self: `--nid` deprecation warning to stderr
Lorenz Leutgeb committed 7 months ago
commit 14b8ed9182cfbd74ddfc16e912ddac85f9131ae1
parent d750525ea9610fc52258b205a6d8c356e0bd18cb
2 files changed +8 -3
modified crates/radicle-cli/examples/rad-self.md
@@ -26,10 +26,14 @@ did:key:z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi

```
$ rad self --nid
-
! Warning: The option `--nid` is deprecated, please use `rad node status --only nid` instead.
z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi
```

+
``` (stderr)
+
$ rad self --nid
+
! Deprecated: The command/option `rad self --nid` is deprecated and will be removed. Please use `rad node status --only nid` instead.
+
```
+

```
$ rad self --ssh-key
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHahWSBEpuT1ESZbynOmBNkLBSnR32Ar4woZqSV2YNH1
modified crates/radicle-cli/src/commands/self.rs
@@ -100,8 +100,9 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
            term::print(profile.config.alias());
        }
        Show::NodeId => {
-
            term::warning(
-
                "The option `--nid` is deprecated, please use `rad node status --only nid` instead.",
+
            crate::warning::deprecated(
+
                "rad self --nid",
+
                "rad node status --only nid",
            );
            term::print(
                Node::new(profile.socket())