Skip to content

Commit f6e6b00

Browse files
authored
fix: remove brev reset suggestion from brev ls output (#404)
1 parent 39ce87a commit f6e6b00

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

pkg/cmd/ls/ls.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,6 @@ func (ls Ls) ShowOrgWorkspaces(org *entity.Organization, workspaces []entity.Wor
415415
displayWorkspacesTable(ls.terminal, workspaces, gpuLookup)
416416

417417
fmt.Print("\n")
418-
419-
displayLsResetBreadCrumb(ls.terminal, workspaces)
420418
}
421419

422420
func (ls Ls) displayWorkspacesAndHelp(org *entity.Organization, otherOrgs []entity.Organization, userWorkspaces []entity.Workspace, allWorkspaces []entity.Workspace, gpuLookup map[string]string) {
@@ -438,22 +436,6 @@ func (ls Ls) displayWorkspacesAndHelp(org *entity.Organization, otherOrgs []enti
438436
displayWorkspacesTable(ls.terminal, userWorkspaces, gpuLookup)
439437

440438
fmt.Print("\n")
441-
442-
displayLsResetBreadCrumb(ls.terminal, userWorkspaces)
443-
// displayLsConnectBreadCrumb(ls.terminal, userWorkspaces)
444-
}
445-
}
446-
447-
func displayLsResetBreadCrumb(t *terminal.Terminal, workspaces []entity.Workspace) {
448-
foundAResettableWorkspace := false
449-
for _, w := range workspaces {
450-
if w.Status == entity.Failure || getWorkspaceDisplayStatus(w) == entity.Unhealthy {
451-
if !foundAResettableWorkspace {
452-
t.Vprintf("%s", t.Red("Reset unhealthy or failed instance:\n"))
453-
}
454-
t.Vprintf("%s", t.Yellow(fmt.Sprintf("\tbrev reset %s\n", w.Name)))
455-
foundAResettableWorkspace = true
456-
}
457439
}
458440
}
459441

0 commit comments

Comments
 (0)