fix: correct default wsproxy table columns (#15124)

Closes #15123
This commit is contained in:
Ethan
2024-10-17 13:09:53 +00:00
committed by GitHub
parent bab17a3556
commit c81fd1d868
+1 -1
View File
@@ -102,7 +102,7 @@ func (r *RootCmd) patchProxy() *serpent.Command {
}),
cliui.JSONFormat(),
// Table formatter expects a slice, make a slice of one.
cliui.ChangeFormatterData(cliui.TableFormat([]codersdk.WorkspaceProxy{}, []string{"proxy name", "proxy url"}),
cliui.ChangeFormatterData(cliui.TableFormat([]codersdk.WorkspaceProxy{}, []string{"name", "url"}),
func(data any) (any, error) {
response, ok := data.(codersdk.WorkspaceProxy)
if !ok {