Export selfupdate.Restart

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
VeillaxandClaude Sonnet 5.5 committed 2026-10-26 13:58:02 -06:00
1 parent d1bbd28fb0
commit 5d354dee8c
3 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -7,7 +7,7 @@ import (
"syscall"
)
// restart replaces this process with the new binary, with the same arguments and environment.
func restart(exe string) error {
// 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())
}
+1 -1
View File
@@ -2,6 +2,6 @@ package selfupdate
import "errors"
func restart(string) error {
func Restart(string) error {
return errors.New("restarting in place is not supported on Windows")
}
+1 -1
View File
@@ -72,7 +72,7 @@ func (c *Config) defaults() {
c.Verify = verifyRuns(c.App)
}
if c.Restart == nil {
c.Restart = restart
c.Restart = Restart
}
c.Server = strings.TrimRight(c.Server, "/")
}