MCPcopy Index your code
hub / github.com/coder/coder / getBoundaryVersion

Function getBoundaryVersion

enterprise/cli/boundary.go:19–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17}
18
19func getBoundaryVersion() string {
20 const boundaryModulePath = "github.com/coder/boundary"
21
22 buildInfo, ok := debug.ReadBuildInfo()
23 if !ok {
24 return "unknown"
25 }
26
27 for _, module := range buildInfo.Deps {
28 if module.Path == boundaryModulePath {
29 return module.Version
30 }
31 }
32
33 return "unknown"
34}
35
36func (r *RootCmd) verifyLicense(inv *serpent.Invocation) error {
37 client, err := r.InitClient(inv)

Callers 1

boundaryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected