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"
|
ACTION = "action"
|
||||||
INDEX = "index"
|
INDEX = "index"
|
||||||
ARGS = "args"
|
ARGS = "args"
|
||||||
|
STYLE = "style"
|
||||||
)
|
)
|
||||||
const COMMAND = "command"
|
const COMMAND = "command"
|
||||||
|
|
||||||
|
7
conf.go
7
conf.go
@ -38,14 +38,13 @@ const (
|
|||||||
|
|
||||||
ENV = "env"
|
ENV = "env"
|
||||||
RUN = "run"
|
RUN = "run"
|
||||||
RES = "res"
|
|
||||||
ERR = "err"
|
ERR = "err"
|
||||||
|
|
||||||
POD = "pod"
|
POD = "pod"
|
||||||
// CTX = "ctx"
|
CTX = "ctx"
|
||||||
CMD = "cmd"
|
CMD = "cmd"
|
||||||
ARG = "arg"
|
ARG = "arg"
|
||||||
OPT = "opt"
|
RES = "res"
|
||||||
)
|
)
|
||||||
const ( // MOD
|
const ( // MOD
|
||||||
MOD_DIR = 0750
|
MOD_DIR = 0750
|
||||||
@ -291,7 +290,7 @@ const ( // CTX
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
CTX = "ctx"
|
// CTX = "ctx"
|
||||||
CLI = "cli"
|
CLI = "cli"
|
||||||
WEB = "web"
|
WEB = "web"
|
||||||
AAA = "aaa"
|
AAA = "aaa"
|
||||||
|
@ -213,7 +213,7 @@ func (m *Message) ProcessCommandOpt(arg []string, args ...string) {
|
|||||||
if len(arg) > 0 && arg[0] == RUN {
|
if len(arg) > 0 && arg[0] == RUN {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
m.Push(OPT, kit.Format(m.OptionSimple(args...)))
|
m.Push("opt", kit.Format(m.OptionSimple(args...)))
|
||||||
}
|
}
|
||||||
func (m *Message) ProcessField(arg ...interface{}) {
|
func (m *Message) ProcessField(arg ...interface{}) {
|
||||||
m.Process(PROCESS_FIELD)
|
m.Process(PROCESS_FIELD)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user