Skip to content

Commit

Permalink
Reorder ID/name for role list
Browse files Browse the repository at this point in the history
  • Loading branch information
cyx committed May 15, 2021
1 parent 20dad88 commit 11bf1b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/display/roles.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ import (
)

type roleView struct {
Name string
ID string
Name string
Description string
}

func (v *roleView) AsTableHeader() []string {
return []string{"Name", "Role ID", "Description"}
return []string{"Role ID", "Name", "Description"}
}

func (v *roleView) AsTableRow() []string {
return []string{
v.Name,
ansi.Faint(v.ID),
v.Name,
v.Description,
}
}
Expand Down

0 comments on commit 11bf1b9

Please sign in to comment.