MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / RenderUpdateFailed

Function RenderUpdateFailed

tui/update.go:104–111  ·  view source on GitHub ↗
(err error, releaseURL string)

Source from the content-addressed store, hash-verified

102}
103
104func RenderUpdateFailed(err error, releaseURL string) string {
105 InitCommonStyles(os.Stdout)
106 var content strings.Builder
107 content.WriteString(ErrorStyle().Render(fmt.Sprintf("✗ Update failed: %v", err)))
108 content.WriteString("\n")
109 content.WriteString(HelpStyle().Render(fmt.Sprintf("You can download the latest version from: %s", releaseURL)))
110 return content.String()
111}
112
113type updateProgressModel struct {
114 spinner spinner.Model

Callers 1

Calls 3

InitCommonStylesFunction · 0.85
ErrorStyleFunction · 0.85
HelpStyleFunction · 0.85

Tested by

no test coverage detected