Files
go-worm/lib/instance/detach.go
T

19 lines
258 B
Go
Raw Normal View History

package instance
import (
"os"
"tea.chunkbyte.com/kato/go-worm/lib/config"
)
func Detach() error {
if AlreadyRunning() {
return nil
}
exe, err := config.InstalledExe()
if err != nil {
return err
}
return Launch(exe, filterArgs(os.Args[1:]))
}