diff --git a/base/web/render.go b/base/web/render.go index ef4bf7dd..75ed5f06 100644 --- a/base/web/render.go +++ b/base/web/render.go @@ -125,5 +125,5 @@ func PushStream(m *ice.Message) { } func Format(tag string, arg ...interface{}) string { - return kit.Format("<%s>%s", tag, strings.Join(kit.Simple(arg), "")) + return kit.Format("<%s>%s", tag, strings.Join(kit.Simple(arg), ""), tag) } diff --git a/conf.go b/conf.go index 24d59aff..20d1bb91 100644 --- a/conf.go +++ b/conf.go @@ -21,6 +21,7 @@ const ( LOAD = "load" AUTO = "auto" SHOW = "show" + PLAY = "play" HELP = "help" HTTP = "http" SAVE = "save" diff --git a/core/wiki/word.go b/core/wiki/word.go index dbbf97f3..db7bd9fc 100644 --- a/core/wiki/word.go +++ b/core/wiki/word.go @@ -35,7 +35,7 @@ func init() { ), )}, }, Commands: map[string]*ice.Command{ - WORD: {Name: "word path=src/main.shy@key auto show", Help: "语言文字", Meta: kit.Dict( + WORD: {Name: "word path=src/main.shy@key auto play", Help: "语言文字", Meta: kit.Dict( ice.DisplayLocal(""), ), Action: ice.MergeAction(map[string]*ice.Action{ mdb.INPUTS: {Name: "inputs", Help: "补全", Hand: func(m *ice.Message, arg ...string) { @@ -44,7 +44,7 @@ func init() { web.STORY: {Name: "story", Help: "运行", Hand: func(m *ice.Message, arg ...string) { m.Cmdy(arg[0], ctx.ACTION, ice.RUN, arg[2:]) }}, - ice.SHOW: {Name: "show", Help: "演示"}, + ice.PLAY: {Name: "play", Help: "演示"}, }, ctx.CmdAction()), Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { m.Option(nfs.DIR_REG, m.Config(lex.REGEXP)) if m.Option(nfs.DIR_DEEP, ice.TRUE); !_wiki_list(m, cmd, arg...) {