From bff34f7c231e749d9d46d2d522d95725133d277b Mon Sep 17 00:00:00 2001 From: harveyshao Date: Wed, 12 Jan 2022 18:12:04 +0800 Subject: [PATCH] opt action.js --- base/ctx/command.go | 1 + conf.go | 7 +++---- option.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/base/ctx/command.go b/base/ctx/command.go index 8f00b4ed..41f40a51 100644 --- a/base/ctx/command.go +++ b/base/ctx/command.go @@ -67,6 +67,7 @@ const ( ACTION = "action" INDEX = "index" ARGS = "args" + STYLE = "style" ) const COMMAND = "command" diff --git a/conf.go b/conf.go index 20d1bb91..3c95b6c2 100644 --- a/conf.go +++ b/conf.go @@ -38,14 +38,13 @@ const ( ENV = "env" RUN = "run" - RES = "res" ERR = "err" POD = "pod" - // CTX = "ctx" + CTX = "ctx" CMD = "cmd" ARG = "arg" - OPT = "opt" + RES = "res" ) const ( // MOD MOD_DIR = 0750 @@ -291,7 +290,7 @@ const ( // CTX ) const ( - CTX = "ctx" + // CTX = "ctx" CLI = "cli" WEB = "web" AAA = "aaa" diff --git a/option.go b/option.go index f53c0864..e894416a 100644 --- a/option.go +++ b/option.go @@ -213,7 +213,7 @@ func (m *Message) ProcessCommandOpt(arg []string, args ...string) { if len(arg) > 0 && arg[0] == RUN { return } - m.Push(OPT, kit.Format(m.OptionSimple(args...))) + m.Push("opt", kit.Format(m.OptionSimple(args...))) } func (m *Message) ProcessField(arg ...interface{}) { m.Process(PROCESS_FIELD)