Skip to content

Add column ordering support to cliui table #16055

@mafredri

Description

@mafredri

Currently CLI table columns are ordered in the order they were defined in the structure. This means that either a new data type has to be created and data copied over meticulously and kept in sync with future changes, or the columns will appear in an unsatisfactory order. The order can be especially problematic when embedding other structures.

There are two benefits to allowing the order to be defined:

  1. No more duplicate data structures and copying over (risk of changes/new data fields not being propagated)
  2. Users can define the column order themselves (it could follow the given --colum flag)

This also came up in #15940 (comment) and is something I'd like to utilize in #16030.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions