mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
9738b9319b
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
17 lines
325 B
Go
17 lines
325 B
Go
// +build windows
|
|
|
|
package reexec
|
|
|
|
import (
|
|
"os/exec"
|
|
)
|
|
|
|
// Command returns *exec.Cmd which have Path as current binary.
|
|
// For example if current binary is "docker.exe" at "C:\", then cmd.Path will
|
|
// be set to "C:\docker.exe".
|
|
func Command(args ...string) *exec.Cmd {
|
|
return &exec.Cmd{
|
|
Path: Self(),
|
|
Args: args,
|
|
}
|
|
}
|