Skip to content

Commit

Permalink
Add more columns to the default "resource ls" renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
cvaroqui committed Sep 11, 2023
1 parent 515f6ab commit 53d1162
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/commands/object_resource_ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (t *CmdObjectResourceLs) Run(selector, kind string) error {
data = *resp.JSON500
}
renderer := output.Renderer{
DefaultOutput: "tab=OBJECT:meta.object,NODE:meta.node,RID:meta.rid,STATUS:data.status.status",
DefaultOutput: "tab=OBJECT:meta.object,NODE:meta.node,RID:meta.rid,TYPE:data.status.type,STATUS:data.status.status,IS_MONITORED:data.config.is_monitored,IS_DISABLED:data.config.is_disabled,IS_STANDBY:data.config.is_standby,RESTART:data.config.restart,RESTART_REMAINING:data.monitor.restart.remaining",
Output: t.Output,
Color: t.Color,
Data: data,
Expand Down
2 changes: 1 addition & 1 deletion core/commands/object_resource_status_ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (t *CmdObjectResourceStatusLs) Run(selector, kind string) error {
data = *resp.JSON500
}
renderer := output.Renderer{
DefaultOutput: "tab=OBJECT:meta.object,NODE:meta.node,RID:meta.rid,STATUS:data.status",
DefaultOutput: "tab=OBJECT:meta.object,NODE:meta.node,RID:meta.rid,TYPE:data.type,STATUS:data.status",
Output: t.Output,
Color: t.Color,
Data: data,
Expand Down

0 comments on commit 53d1162

Please sign in to comment.