Skip to content

Commit

Permalink
Fix list format
Browse files Browse the repository at this point in the history
  • Loading branch information
csweichel committed Nov 8, 2023
1 parent 7e87d80 commit 41d7567
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/local-app/cmd/workspace-list-classes.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var workspaceListClassesCmd = &cobra.Command{
})
}

return WriteTabular(res, workspaceListClassesOpts.Format, prettyprint.WriterFormatNarrow)
return WriteTabular(res, workspaceListClassesOpts.Format, prettyprint.WriterFormatWide)
},
}

Expand Down
2 changes: 1 addition & 1 deletion components/local-app/cmd/workspace-list-editors.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ var workspaceListEditors = &cobra.Command{
})
}

return WriteTabular(res, workspaceListEditorsOpts.Format, prettyprint.WriterFormatNarrow)
return WriteTabular(res, workspaceListEditorsOpts.Format, prettyprint.WriterFormatWide)
},
}

Expand Down
5 changes: 4 additions & 1 deletion components/local-app/cmd/workspace-list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ func TestWorkspaceListCmd(t *testing.T) {
{
Name: "no config",
Commandline: []string{"workspace", "list"},
Expectation: CommandTestExpectation{Error: config.ErrNoContext.Error()},
Expectation: CommandTestExpectation{
Error: config.ErrNoContext.Error(),
HasResolutions: true,
},
},
{
Name: "test one workspace",
Expand Down

0 comments on commit 41d7567

Please sign in to comment.