mirror of
https://gitee.com/energye/energy.git
synced 2024-12-04 04:38:21 +08:00
A: energy command line, Set energy framework development environment
This commit is contained in:
parent
8f05acb860
commit
37a3da8f26
@ -52,6 +52,7 @@ func setEnergyHomeEnv(key, value string) {
|
||||
cmd.MessageCallback = func(s []byte, e error) {
|
||||
fmt.Println("CMD", s, " error", e)
|
||||
}
|
||||
defer cmd.Close()
|
||||
if isWindows {
|
||||
var args = []string{"/c", "setx", key, value}
|
||||
cmd.Command("cmd.exe", args...)
|
||||
@ -113,5 +114,4 @@ func setEnergyHomeEnv(key, value string) {
|
||||
}
|
||||
}
|
||||
}
|
||||
cmd.Close()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user