1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00

opt action.js

This commit is contained in:
harveyshao 2022-01-12 18:12:04 +08:00
parent c169cf9ad6
commit bff34f7c23
3 changed files with 5 additions and 5 deletions

View File

@ -67,6 +67,7 @@ const (
ACTION = "action"
INDEX = "index"
ARGS = "args"
STYLE = "style"
)
const COMMAND = "command"

View File

@ -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"

View File

@ -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)