mirror of
https://github.com/beego/bee.git
synced 2024-12-22 10:00:50 +00:00
Adds Windows support for command execution
This commit is contained in:
parent
855ac34dd3
commit
77a36964e5
@ -87,7 +87,8 @@ func (c *customCommand) run() error {
|
||||
switch runtime.GOOS {
|
||||
case "darwin", "linux":
|
||||
cmd = exec.Command("sh", "-c", c.Command)
|
||||
case "windows": //TODO
|
||||
case "windows":
|
||||
cmd = exec.Command("cmd", "/C", c.Command)
|
||||
}
|
||||
cmd.Stdout = os.Stdout
|
||||
cmd.Stderr = os.Stderr
|
||||
|
Loading…
Reference in New Issue
Block a user