mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 01:24:05 +08:00
opt action.js
This commit is contained in:
parent
c169cf9ad6
commit
bff34f7c23
@ -67,6 +67,7 @@ const (
|
||||
ACTION = "action"
|
||||
INDEX = "index"
|
||||
ARGS = "args"
|
||||
STYLE = "style"
|
||||
)
|
||||
const COMMAND = "command"
|
||||
|
||||
|
7
conf.go
7
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"
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user