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

Function getCurrentBinaryPath

cmd/root.go:460–466  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

458}
459
460func getCurrentBinaryPath() (string, error) {
461 exe, err := os.Executable()
462 if err != nil {
463 return "", err
464 }
465 return filepath.EvalSymlinks(exe)
466}
467
468func detectPackageManager(binPath string) string {
469 p := strings.ToLower(binPath)

Callers 4

runUpdateCommandFunction · 0.85
handleMandatoryUpdateFunction · 0.85
handleOptionalUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected