@highway1/cli 0.1.59 → 0.1.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -9
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -17811,7 +17811,6 @@ function registerDaemonCommand(program2) {
|
|
|
17811
17811
|
if (await client.isDaemonRunning()) {
|
|
17812
17812
|
success("Daemon already running");
|
|
17813
17813
|
const status = await client.send("status", {});
|
|
17814
|
-
info(`Peer ID: ${status.peerId}`);
|
|
17815
17814
|
info(`DID: ${status.did}`);
|
|
17816
17815
|
return;
|
|
17817
17816
|
}
|
|
@@ -17830,7 +17829,6 @@ function registerDaemonCommand(program2) {
|
|
|
17830
17829
|
if (await client.isDaemonRunning()) {
|
|
17831
17830
|
success("Daemon started");
|
|
17832
17831
|
const status = await client.send("status", {});
|
|
17833
|
-
info(`Peer ID: ${status.peerId}`);
|
|
17834
17832
|
info(`DID: ${status.did}`);
|
|
17835
17833
|
info(`Socket: ${SOCKET_PATH}`);
|
|
17836
17834
|
return;
|
|
@@ -17894,15 +17892,10 @@ function registerDaemonCommand(program2) {
|
|
|
17894
17892
|
const status = await client.send("status", {});
|
|
17895
17893
|
success("Daemon running");
|
|
17896
17894
|
console.log();
|
|
17897
|
-
info(`Peer ID: ${status.peerId}`);
|
|
17898
17895
|
info(`DID: ${status.did}`);
|
|
17896
|
+
info(`Relays: ${(status.connectedRelays ?? []).join(", ") || "(none)"}`);
|
|
17897
|
+
info(`Peers: ${status.peerCount ?? 0}`);
|
|
17899
17898
|
info(`Socket: ${SOCKET_PATH}`);
|
|
17900
|
-
info(`Bootstrap peers: ${status.bootstrapPeers.length}`);
|
|
17901
|
-
console.log();
|
|
17902
|
-
info("Multiaddrs:");
|
|
17903
|
-
status.multiaddrs.forEach((addr) => {
|
|
17904
|
-
console.log(` ${addr}`);
|
|
17905
|
-
});
|
|
17906
17899
|
} else {
|
|
17907
17900
|
info("Daemon not running");
|
|
17908
17901
|
console.log();
|