Skip to content

Commit

Permalink
status: added output sort
Browse files Browse the repository at this point in the history
Output of tt status was not sorted by instance name, so added
sorting in ascending order.
  • Loading branch information
Japsty authored and psergee committed Sep 9, 2024
1 parent 243afa7 commit a73da88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli/status/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func Status(runningCtx running.RunningCtx, opts StatusOpts) error {
}
ts.AppendRow(row)
}
ts.SortBy([]table.SortBy{{Name: "INSTANCE", Mode: table.Asc}})

if opts.Pretty {
ts.SetStyle(table.StyleRounded)
Expand Down

0 comments on commit a73da88

Please sign in to comment.