MCPcopy Create free account
hub / github.com/jetify-com/devbox / printSuccessMessage

Function printSuccessMessage

internal/vercheck/vercheck.go:205–216  ·  view source on GitHub ↗
(w io.Writer, toolName, oldVersion, newVersion string)

Source from the content-addressed store, hash-verified

203}
204
205func printSuccessMessage(w io.Writer, toolName, oldVersion, newVersion string) {
206 var msg string
207 if SemverCompare(oldVersion, newVersion) == 0 {
208 msg = fmt.Sprintf("already at %s version %s", toolName, newVersion)
209 } else {
210 msg = fmt.Sprintf("updated to %s version %s", toolName, newVersion)
211 }
212
213 // Prints a <green>Success:</green> message to the writer.
214 // Move to ux.Success. Not doing so to minimize merge-conflicts.
215 fmt.Fprintf(w, "%s%s\n", color.New(color.FgGreen).Sprint("Success: "), msg)
216}
217
218func launcherVersionNotice() string {
219 if !isNewLauncherAvailable() {

Callers 2

selfUpdateLauncherFunction · 0.85
selfUpdateDevboxFunction · 0.85

Calls 1

SemverCompareFunction · 0.85

Tested by

no test coverage detected