mirror of
https://gitee.com/energye/energy.git
synced 2024-12-12 12:25:23 +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) {
|
cmd.MessageCallback = func(s []byte, e error) {
|
||||||
fmt.Println("CMD", s, " error", e)
|
fmt.Println("CMD", s, " error", e)
|
||||||
}
|
}
|
||||||
|
defer cmd.Close()
|
||||||
if isWindows {
|
if isWindows {
|
||||||
var args = []string{"/c", "setx", key, value}
|
var args = []string{"/c", "setx", key, value}
|
||||||
cmd.Command("cmd.exe", args...)
|
cmd.Command("cmd.exe", args...)
|
||||||
@ -113,5 +114,4 @@ func setEnergyHomeEnv(key, value string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cmd.Close()
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user