CI / test (push) Successful in 5m31s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
14 lines
249 B
Go
14 lines
249 B
Go
//go:build !windows
|
|
|
|
package selfupdate
|
|
|
|
import (
|
|
"os"
|
|
"syscall"
|
|
)
|
|
|
|
// Restart replaces this process with the new binary, with the same arguments and environment.
|
|
func Restart(exe string) error {
|
|
return syscall.Exec(exe, os.Args, os.Environ())
|
|
}
|