Skip to content

Commit

Permalink
chore(cmd): don't massage json response data before printing
Browse files Browse the repository at this point in the history
  • Loading branch information
rektdeckard committed Nov 13, 2024
1 parent 3823422 commit 198a989
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/lk/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func listAndPrint[
}

if cmd.Bool("json") {
PrintJSON(res.GetItems())
PrintJSON(res)
} else {
table := CreateTable().
Headers(header...)
Expand Down
2 changes: 1 addition & 1 deletion cmd/lk/room.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 198a989

Please sign in to comment.