MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / GetCliVersionByShell

Function GetCliVersionByShell

cli/internal/apk/cli/cli.go:28–32  ·  view source on GitHub ↗

通过shell获取smartide的版本

()

Source from the content-addressed store, hash-verified

26
27// 通过shell获取smartide的版本
28func GetCliVersionByShell() string {
29 output, _ := common.EXEC.CombinedOutput("smartide version", "")
30 return strings.Split(output, "\n")[0]
31 return strings.ReplaceAll(output, "\n", "; ")
32}

Callers

nothing calls this directly

Calls 1

CombinedOutputMethod · 0.80

Tested by

no test coverage detected