detach server on windows

Related #106
This commit is contained in:
Gokcehan committed 2018-08-01 00:21:55 +03:00
1 parent d3f9a3588f
commit 0b8de7c77e
3 files changed
+13 -3

No files matched your search

+4
View File
@@ -80,6 +80,10 @@ func init() {
gDefaultSocketPath = filepath.Join(os.TempDir(), fmt.Sprintf("lf.%s.sock", gUser.Username))
}
func detachedCommand(name string, arg ...string) *exec.Cmd {
return exec.Command(name, arg...)
}
func pauseCommand() *exec.Cmd {
cmd := `echo
echo -n 'Press any key to continue'