chore: Fix column name in proxy ls command (#7450)

This commit is contained in:
Steven Masley
2023-05-08 12:23:12 -05:00
committed by GitHub
parent 3931a6c7bc
commit 1aac8200fa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ type WorkspaceProxy struct {
// Status is the latest status check of the proxy. This will be empty for deleted
// proxies. This value can be used to determine if a workspace proxy is healthy
// and ready to use.
Status WorkspaceProxyStatus `json:"status,omitempty" table:"status,recursive"`
Status WorkspaceProxyStatus `json:"status,omitempty" table:"proxy,recursive"`
}
type CreateWorkspaceProxyRequest struct {
+1 -1
View File
@@ -151,7 +151,7 @@ func (r *RootCmd) createProxy() *clibase.Cmd {
func (r *RootCmd) listProxies() *clibase.Cmd {
formatter := cliui.NewOutputFormatter(
cliui.TableFormat([]codersdk.WorkspaceProxy{}, []string{"name", "url", "status status"}),
cliui.TableFormat([]codersdk.WorkspaceProxy{}, []string{"name", "url", "proxy status"}),
cliui.JSONFormat(),
cliui.ChangeFormatterData(cliui.TextFormat(), func(data any) (any, error) {
resp, ok := data.([]codersdk.WorkspaceProxy)