From 64715c4f33fdb98003b7fda8d1dcf9c65463de07 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 --- pkg/reexec/command_unsupported.go | 2 +- pkg/reexec/command_windows.go | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 pkg/reexec/command_windows.go diff --git a/pkg/reexec/command_unsupported.go b/pkg/reexec/command_unsupported.go index a579318e82..4adcd8f13e 100644 --- a/pkg/reexec/command_unsupported.go +++ b/pkg/reexec/command_unsupported.go @@ -1,4 +1,4 @@ -// +build !linux +// +build !linux,!windows package reexec diff --git a/pkg/reexec/command_windows.go b/pkg/reexec/command_windows.go new file mode 100644 index 0000000000..124d42fc62 --- /dev/null +++ b/pkg/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, + } +}