From ff53352c6ea4fa88fd8d04bdd8276df8d4f81d64 Mon Sep 17 00:00:00 2001 From: harveyshao Date: Mon, 17 May 2021 20:43:18 +0800 Subject: [PATCH] add git.status --- misc/git/status.go | 4 ++-- misc/git/total.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/git/status.go b/misc/git/status.go index 99b0df67..4fb86567 100644 --- a/misc/git/status.go +++ b/misc/git/status.go @@ -128,9 +128,9 @@ func init() { ADD: {Name: "add", Help: "添加", Hand: func(m *ice.Message, arg ...string) { m.Option(cli.CMD_DIR, _repos_path(m.Option(kit.MDB_NAME))) m.Cmdy(cli.SYSTEM, GIT, ADD, m.Option(kit.MDB_FILE)) - }}, OPT: {Name: "opt", Help: "优化"}, PRO: {Name: "pro", Help: "体验"}, + }}, OPT: {Name: "opt", Help: "优化"}, PRO: {Name: "pro", Help: "自举"}, - COMMIT: {Name: "commit action=pro,opt,add comment=some@key", Help: "提交", Hand: func(m *ice.Message, arg ...string) { + COMMIT: {Name: "commit action=add,opt,pro comment=some@key", Help: "提交", Hand: func(m *ice.Message, arg ...string) { if arg[0] == kit.MDB_ACTION { m.Option(kit.MDB_TEXT, arg[1]+" "+arg[3]) } else { diff --git a/misc/git/total.go b/misc/git/total.go index 7e434f22..6d5dd514 100644 --- a/misc/git/total.go +++ b/misc/git/total.go @@ -57,7 +57,7 @@ func init() { }) m.Push("name", "total") - m.Push("days", kit.Int(days)+1) + m.Push("days", days) m.Push("commit", commit) m.Push("adds", adds) m.Push("dels", dels)