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, + } +}