MCPcopy
hub / github.com/wavetermdev/waveterm / ClientMacOSVersion

Function ClientMacOSVersion

pkg/wavebase/wavebase.go:379–387  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

377}
378
379func ClientMacOSVersion() string {
380 if runtime.GOOS != "darwin" {
381 return ""
382 }
383 macOSVersionOnce.Do(func() {
384 cachedMacOSVersion = internalMacOSVersion()
385 })
386 return cachedMacOSVersion
387}
388
389var releaseRegex = regexp.MustCompile(`^(\d+\.\d+\.\d+)`)
390var osReleaseOnce = &sync.Once{}

Callers 2

MacOSVersionCommandMethod · 0.92
startupActivityUpdateFunction · 0.92

Calls 1

internalMacOSVersionFunction · 0.85

Tested by

no test coverage detected