package reexec

import "github.com/docker/cli/components/engine/pkg/reexec"

Index

Functions

func Command

func Command(args ...string) *exec.Cmd

Command returns *exec.Cmd which has 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 Init

func Init() bool

Init is called as the first part of the exec process and returns true if an initialization function was called.

func Register

func Register(name string, initializer func())

Register adds an initialization func under the specified name

func Self

func Self() string

Self returns the path to the current process's binary. Uses os.Args[0].

Source Files

command_windows.go reexec.go

Version
v17.10.0-ce+incompatible
Published
Oct 17, 2017
Platform
windows/amd64
Imports
4 packages
Last checked
27 minutes ago

Tools for package owners.