shell仅用于windows

This commit is contained in:
johlanse 2022-10-31 18:41:06 +08:00
parent 78fcf92ae2
commit 4d7b8586b6
1 changed files with 7 additions and 1 deletions

View File

@ -10,6 +10,7 @@ import (
"os/exec" "os/exec"
"os/signal" "os/signal"
"path" "path"
"runtime"
"strconv" "strconv"
"sync" "sync"
"syscall" "syscall"
@ -215,7 +216,12 @@ func main() {
if now { if now {
do() do()
} }
cli.RunCli() if runtime.GOOS == "windows" {
cli.RunCli()
} else {
select {}
}
} }
func do() { func do() {