mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
chore: Fix column name in proxy ls command (#7450)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user