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