Skip to content

Commit

Permalink
(chore): Add misspelling linter check and fix issues
Browse files Browse the repository at this point in the history
Signed-off-by: Camila Macedo <[email protected]>
  • Loading branch information
Camila Macedo committed Sep 28, 2023
1 parent c896a55 commit 755e7a4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
3 changes: 2 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ linters:
- staticcheck
- typecheck
- unparam
- unused
- unused
- misspell
38 changes: 19 additions & 19 deletions subcommands/devices/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,25 +68,25 @@ func ownerFormatter(d *client.Device) string {
}

var Columns = map[string]column{
"name": {func(d *client.Device) string { return d.Name }},
"uuid": {func(d *client.Device) string { return d.Uuid }},
"factory": {func(d *client.Device) string { return d.Factory }},
"owner": {ownerFormatter},
"device-group": {func(d *client.Device) string { return d.GroupName }},
"target": {func(d *client.Device) string { return d.TargetName }},
"status": {statusFormatter},
"apps": {func(d *client.Device) string { return strings.Join(d.DockerApps, ",") }},
"up-to-date": {func(d *client.Device) string { return fmt.Sprintf("%v", d.UpToDate) }},
"tag": {func(d *client.Device) string { return d.Tag }},
"created-at": {func(d *client.Device) string { return d.ChangeMeta.CreatedAt }},
"created-by": {func(d *client.Device) string { return d.ChangeMeta.CreatedBy }},
"updated-at": {func(d *client.Device) string { return d.ChangeMeta.UpdatedAt }},
"updated-by": {func(d *client.Device) string { return d.ChangeMeta.UpdatedBy }},
"last-seen": {func(d *client.Device) string { return d.LastSeen }},
"ostree-hash": {func(d *client.Device) string { return d.OstreeHash }},
"curent-update": {func(d *client.Device) string { return d.CurrentUpdate }},
"is-prod": {func(d *client.Device) string { return fmt.Sprintf("%v", d.IsProd) }},
"is-wave": {func(d *client.Device) string { return fmt.Sprintf("%v", d.IsWave) }},
"name": {func(d *client.Device) string { return d.Name }},
"uuid": {func(d *client.Device) string { return d.Uuid }},
"factory": {func(d *client.Device) string { return d.Factory }},
"owner": {ownerFormatter},
"device-group": {func(d *client.Device) string { return d.GroupName }},
"target": {func(d *client.Device) string { return d.TargetName }},
"status": {statusFormatter},
"apps": {func(d *client.Device) string { return strings.Join(d.DockerApps, ",") }},
"up-to-date": {func(d *client.Device) string { return fmt.Sprintf("%v", d.UpToDate) }},
"tag": {func(d *client.Device) string { return d.Tag }},
"created-at": {func(d *client.Device) string { return d.ChangeMeta.CreatedAt }},
"created-by": {func(d *client.Device) string { return d.ChangeMeta.CreatedBy }},
"updated-at": {func(d *client.Device) string { return d.ChangeMeta.UpdatedAt }},
"updated-by": {func(d *client.Device) string { return d.ChangeMeta.UpdatedBy }},
"last-seen": {func(d *client.Device) string { return d.LastSeen }},
"ostree-hash": {func(d *client.Device) string { return d.OstreeHash }},
"current-update": {func(d *client.Device) string { return d.CurrentUpdate }},
"is-prod": {func(d *client.Device) string { return fmt.Sprintf("%v", d.IsProd) }},
"is-wave": {func(d *client.Device) string { return fmt.Sprintf("%v", d.IsWave) }},
}

func addPaginationFlags(cmd *cobra.Command) {
Expand Down

0 comments on commit 755e7a4

Please sign in to comment.