From 198a9893102fbfebd6b9ff6eff1838361f2af151 Mon Sep 17 00:00:00 2001 From: rektdeckard Date: Tue, 12 Nov 2024 21:41:05 -0700 Subject: [PATCH] chore(cmd): don't massage json response data before printing --- cmd/lk/proto.go | 2 +- cmd/lk/room.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/lk/proto.go b/cmd/lk/proto.go index 38cd087..8b4ce44 100644 --- a/cmd/lk/proto.go +++ b/cmd/lk/proto.go @@ -192,7 +192,7 @@ func listAndPrint[ } if cmd.Bool("json") { - PrintJSON(res.GetItems()) + PrintJSON(res) } else { table := CreateTable(). Headers(header...) diff --git a/cmd/lk/room.go b/cmd/lk/room.go index 90b0497..b608347 100644 --- a/cmd/lk/room.go +++ b/cmd/lk/room.go @@ -660,7 +660,7 @@ func listRooms(ctx context.Context, cmd *cli.Command) error { } if cmd.Bool("json") { - PrintJSON(res.Rooms) + PrintJSON(res) } else { table := CreateTable().Headers("RoomID", "Name", "Participants", "Publishers") for _, rm := range res.Rooms {