Hide console on windows
The companion does no longer show a terminal window pop up
This commit is contained in:
@@ -57,7 +57,9 @@ func runOpenCommand(template, path string) error {
|
||||
if !sawPath {
|
||||
tokens = append(tokens, path)
|
||||
}
|
||||
return exec.Command(tokens[0], tokens[1:]...).Start()
|
||||
cmd := exec.Command(tokens[0], tokens[1:]...)
|
||||
hideConsole(cmd)
|
||||
return cmd.Start()
|
||||
}
|
||||
|
||||
// tokenizeCommand splits a command-line string into argv tokens, honouring
|
||||
|
||||
Reference in New Issue
Block a user