From ed9b9e8f410177472642f93bcd7580e0003d14e1 Mon Sep 17 00:00:00 2001 From: shylinux Date: Tue, 29 Oct 2019 13:15:54 +0800 Subject: [PATCH] opt help --- src/contexts/cli/version.go | 2 +- src/contexts/ctx/ctx.go | 13 ++----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/contexts/cli/version.go b/src/contexts/cli/version.go index 61933d6d..d114285a 100644 --- a/src/contexts/cli/version.go +++ b/src/contexts/cli/version.go @@ -7,5 +7,5 @@ var version = struct { self int }{ []string{"2017-11-01 01:02:03", "2019-07-13 18:02:21"}, - `2019-10-29 12:46:35`, `com`, 708, + `2019-10-29 13:12:30`, `com`, 710, } diff --git a/src/contexts/ctx/ctx.go b/src/contexts/ctx/ctx.go index 658536e5..1c7abda1 100644 --- a/src/contexts/ctx/ctx.go +++ b/src/contexts/ctx/ctx.go @@ -111,18 +111,9 @@ var Index = &Context{Name: "ctx", Help: "模块中心", Server: &CTX{}, "help": &Command{Name: "help topic", Help: "帮助", Hand: func(m *Message, c *Context, key string, arg ...string) (e error) { if len(arg) == 0 { - m.Echo("usage: help context [module [command|config|cache name]]\n") - m.Echo(" : 查看模块信息, module: 模块名, command: 模块命令, config: 模块配置, cache: 模块缓存, name: 模块参数\n") - m.Echo("usage: help command [name]\n") - m.Echo(" : 查看当前环境下命令, name: 命令名\n") - m.Echo("usage: help config [name]\n") - m.Echo(" : 查看当前环境下配置, name: 配置名\n") - m.Echo("usage: help cache [name]\n") - m.Echo(" : 查看当前环境下缓存, name: 缓存名\n") - m.Echo("\n") - m.Echo("^_^ Welcome to context world ^_^\n") - m.Echo("Version: 1.0 A New Language, A New Framework\n") + m.Echo("V2.1: Miss You Forever\n") + m.Echo("Date: 2019.10.29 13:14:21\n") m.Echo("More: https://github.com/shylinux/context\n") m.Echo("More: https://shylinux.com/\n") return