Browse code

Windows: reexec pkg supported

Signed-off-by: John Howard <jhoward@microsoft.com>

John Howard authored on 2015/05/09 06:15:53
Showing 2 changed files
... ...
@@ -1,4 +1,4 @@
1
-// +build !linux
1
+// +build !linux,!windows
2 2
 
3 3
 package reexec
4 4
 
5 5
new file mode 100644
... ...
@@ -0,0 +1,14 @@
0
+// +build windows
1
+
2
+package reexec
3
+
4
+import (
5
+	"os/exec"
6
+)
7
+
8
+func Command(args ...string) *exec.Cmd {
9
+	return &exec.Cmd{
10
+		Path: Self(),
11
+		Args: args,
12
+	}
13
+}