From cfa38829d06d62a6b3929ffbda622c7b06becfcb Mon Sep 17 00:00:00 2001 From: shylinux Date: Sun, 19 Apr 2020 01:14:12 +0800 Subject: [PATCH] opt some --- misc/git/git.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/misc/git/git.go b/misc/git/git.go index ca050900..43652fac 100644 --- a/misc/git/git.go +++ b/misc/git/git.go @@ -41,6 +41,9 @@ var Index = &ice.Context{Name: "git", Help: "代码库", "total": {Name: "total", Help: "统计", Value: kit.Data(kit.MDB_SHORT, "name", "skip", kit.Dict("wubi-dict", "true", "word-dict", "true"))}, }, Commands: map[string]*ice.Command{ + ice.WEB_LOGIN: {Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { + }}, + ice.CODE_INSTALL: {Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { m.Option("cmd_dir", m.Conf("install", "meta.path")) m.Cmd(ice.CLI_SYSTEM, "git", "clone", m.Conf("git", "meta.source"))