MCPcopy Create free account
hub / github.com/dropbox/dbxcli / resolvedVersion

Function resolvedVersion

main.go:42–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42func resolvedVersion() string {
43 if version != "" && version != defaultVersion {
44 return version
45 }
46
47 info, ok := readBuildInfo()
48 if !ok {
49 return defaultVersion
50 }
51
52 moduleVersion := info.Main.Version
53 if moduleVersion == "" || moduleVersion == "(devel)" {
54 return defaultVersion
55 }
56
57 return strings.TrimPrefix(moduleVersion, "v")
58}

Calls

no outgoing calls