From 77d53af10fd9b9db4f0d4e740470943990b62fa0 Mon Sep 17 00:00:00 2001 From: 1 <1> Date: Wed, 1 Mar 2023 13:36:06 +0800 Subject: [PATCH] opt some --- base/cli/forever.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/base/cli/forever.go b/base/cli/forever.go index 587d858b..ec8dcc7d 100644 --- a/base/cli/forever.go +++ b/base/cli/forever.go @@ -2,6 +2,7 @@ package cli import ( "os" + "runtime" "strings" ice "shylinux.com/x/icebergs" @@ -24,6 +25,10 @@ func init() { Index.MergeCommands(ice.Commands{ FOREVER: {Name: "forever auto", Help: "启动", Actions: ice.Actions{ START: {Hand: func(m *ice.Message, arg ...string) { + if runtime.GOOS == WINDOWS { + m.Cmdy("serve", "start", arg) + return + } env := []string{PATH, BinPath(), HOME, kit.Select(kit.Path(""), os.Getenv(HOME))} for _, k := range ENV_LIST { if kit.Env(k) != "" {