cmd/lncli: print new status responses to CLI

This commit is contained in:
Oliver Gugger
2024-11-06 15:30:27 +01:00
parent d89ea2d335
commit 870e845a1e
3 changed files with 20 additions and 18 deletions

View File

@@ -2128,11 +2128,13 @@ func stopDaemon(ctx *cli.Context) error {
client, cleanUp := getClient(ctx)
defer cleanUp()
_, err := client.StopDaemon(ctxc, &lnrpc.StopRequest{})
resp, err := client.StopDaemon(ctxc, &lnrpc.StopRequest{})
if err != nil {
return err
}
printRespJSON(resp)
return nil
}
@@ -2997,10 +2999,12 @@ func restoreChanBackup(ctx *cli.Context) error {
req.Backup = backups.Backup
_, err = client.RestoreChannelBackups(ctxc, &req)
resp, err := client.RestoreChannelBackups(ctxc, &req)
if err != nil {
return fmt.Errorf("unable to restore chan backups: %w", err)
}
printRespJSON(resp)
return nil
}