{"modulePath":"github.com/hyperhq/hypercli","version":"v1.10.16","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package reexec\n\n## Functions\n\n```go\nfunc Command(args ...string) *exec.Cmd\n```\nCommand returns \\*exec.Cmd which have Path as current binary. Also it setting SysProcAttr.Pdeathsig to SIGTERM. This will use the in-memory version (/proc/self/exe) of the current binary, it is thus safe to delete or replace the on-disk binary (os.Args\\[0]).\n\n```go\nfunc Init() bool\n```\nInit is called as the first part of the exec process and returns true if an initialization function was called.\n\n```go\nfunc Register(name string, initializer func())\n```\nRegister adds an initialization func under the specified name\n\n```go\nfunc Self() string\n```\nSelf returns the path to the current process's binary. Returns \"/proc/self/exe\".\n\n","path":"github.com/hyperhq/hypercli/pkg/reexec","name":"reexec","synopsis":"","isRedistributable":true}
