From 8239debe8f0ad68aeda370fd6160911d434102c4 Mon Sep 17 00:00:00 2001 From: John Howard Date: Fri, 8 May 2015 14:15:53 -0700 Subject: [PATCH] Windows: reexec pkg supported Signed-off-by: John Howard --- reexec/command_unsupported.go | 2 +- reexec/command_windows.go | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 reexec/command_windows.go diff --git a/reexec/command_unsupported.go b/reexec/command_unsupported.go index a579318..4adcd8f 100644 --- a/reexec/command_unsupported.go +++ b/reexec/command_unsupported.go @@ -1,4 +1,4 @@ -// +build !linux +// +build !linux,!windows package reexec diff --git a/reexec/command_windows.go b/reexec/command_windows.go new file mode 100644 index 0000000..124d42f --- /dev/null +++ b/reexec/command_windows.go @@ -0,0 +1,14 @@ +// +build windows + +package reexec + +import ( + "os/exec" +) + +func Command(args ...string) *exec.Cmd { + return &exec.Cmd{ + Path: Self(), + Args: args, + } +}