Skip to content

Commit

Permalink
Merge pull request #107 from meroxa/consistent-columns
Browse files Browse the repository at this point in the history
Make sure column order is consistent
  • Loading branch information
lovromazgon authored Apr 2, 2021
2 parents 43654a6 + 9842d80 commit 0a2eac5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions utils/display.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ func PrintTransformsTable(transforms []*meroxa.Transform) {
table := simpletable.New()
table.Header = &simpletable.Header{
Cells: []*simpletable.Cell{
{Align: simpletable.AlignCenter, Text: "TYPE"},
{Align: simpletable.AlignCenter, Text: "NAME"},
{Align: simpletable.AlignCenter, Text: "TYPE"},
{Align: simpletable.AlignCenter, Text: "REQUIRED"},
{Align: simpletable.AlignCenter, Text: "DESCRIPTION"},
{Align: simpletable.AlignCenter, Text: "PROPERTIES"},
Expand All @@ -106,8 +106,8 @@ func PrintTransformsTable(transforms []*meroxa.Transform) {

for _, res := range transforms {
r := []*simpletable.Cell{
{Text: res.Type},
{Text: res.Name},
{Text: res.Type},
{Text: strconv.FormatBool(res.Required)},
{Text: strings.ReplaceAll(res.Description, ". ", ". \n")},
}
Expand All @@ -134,8 +134,8 @@ func PrintConnectorsTable(connectors []*meroxa.Connector) {
table.Header = &simpletable.Header{
Cells: []*simpletable.Cell{
{Align: simpletable.AlignCenter, Text: "ID"},
{Align: simpletable.AlignCenter, Text: "TYPE"},
{Align: simpletable.AlignCenter, Text: "NAME"},
{Align: simpletable.AlignCenter, Text: "TYPE"},
{Align: simpletable.AlignCenter, Text: "STREAMS"},
{Align: simpletable.AlignCenter, Text: "STATE"},
},
Expand Down Expand Up @@ -163,8 +163,8 @@ func PrintConnectorsTable(connectors []*meroxa.Connector) {
}
r := []*simpletable.Cell{
{Align: simpletable.AlignRight, Text: fmt.Sprintf("%d", conn.ID)},
{Text: conn.Type},
{Text: conn.Name},
{Text: conn.Type},
{Text: streamStr},
{Text: conn.State},
}
Expand Down Expand Up @@ -203,8 +203,8 @@ func PrintPipelinesTable(pipelines []*meroxa.Pipeline) {
table.Header = &simpletable.Header{
Cells: []*simpletable.Cell{
{Align: simpletable.AlignCenter, Text: "ID"},
{Align: simpletable.AlignCenter, Text: "Name"},
{Align: simpletable.AlignCenter, Text: "State"},
{Align: simpletable.AlignCenter, Text: "NAME"},
{Align: simpletable.AlignCenter, Text: "STATE"},
},
}

Expand Down

0 comments on commit 0a2eac5

Please sign in to comment.