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

Function displayVersion

cmd/root.go:449–458  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

447}
448
449func displayVersion(v string) string {
450 v = strings.TrimSpace(v)
451 if v == "" {
452 return "unknown"
453 }
454 if strings.HasPrefix(v, "v") || strings.HasPrefix(v, "V") {
455 return v
456 }
457 return "v" + v
458}
459
460func getCurrentBinaryPath() (string, error) {
461 exe, err := os.Executable()

Callers 6

runUpdateCommandFunction · 0.85
handlePMUpdateFunction · 0.85
handleMandatoryUpdateFunction · 0.85
handleOptionalUpdateFunction · 0.85
TestDisplayVersionFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestDisplayVersionFunction · 0.68