mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 09:34:05 +08:00
opt some
This commit is contained in:
parent
81445f889e
commit
77b4354d27
@ -149,7 +149,7 @@ func init() {
|
|||||||
mdb.ListSelect(m, arg...)
|
mdb.ListSelect(m, arg...)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
m.Grow(SYSTEM, "", kit.Dict(mdb.TIME, m.Time(), ice.CMD, kit.Join(arg, ice.SP)))
|
// m.Grow(SYSTEM, "", kit.Dict(mdb.TIME, m.Time(), ice.CMD, kit.Join(arg, ice.SP)))
|
||||||
|
|
||||||
if len(arg) == 1 {
|
if len(arg) == 1 {
|
||||||
arg = kit.Split(arg[0])
|
arg = kit.Split(arg[0])
|
||||||
|
@ -137,11 +137,13 @@ func (f *Frame) scan(m *ice.Message, h, line string) *Frame {
|
|||||||
m.I, m.O = f.stdin, f.stdout
|
m.I, m.O = f.stdin, f.stdout
|
||||||
bio := bufio.NewScanner(f.stdin)
|
bio := bufio.NewScanner(f.stdin)
|
||||||
for f.prompt(m, ps...); bio.Scan() && f.stdin != nil; f.prompt(m, ps...) {
|
for f.prompt(m, ps...); bio.Scan() && f.stdin != nil; f.prompt(m, ps...) {
|
||||||
if h == STDIO && len(bio.Text()) == 0 {
|
if h == STDIO {
|
||||||
continue // 空行
|
if len(bio.Text()) == 0 {
|
||||||
|
continue // 空行
|
||||||
|
}
|
||||||
|
m.Cmdx(mdb.INSERT, SOURCE, kit.Keys(mdb.HASH, h), mdb.LIST, mdb.TEXT, bio.Text())
|
||||||
}
|
}
|
||||||
|
|
||||||
m.Cmdx(mdb.INSERT, SOURCE, kit.Keys(mdb.HASH, h), mdb.LIST, mdb.TEXT, bio.Text())
|
|
||||||
f.count++
|
f.count++
|
||||||
|
|
||||||
if len(bio.Text()) == 0 {
|
if len(bio.Text()) == 0 {
|
||||||
|
@ -340,8 +340,8 @@ func init() {
|
|||||||
ice.CTX_INIT: {Hand: func(m *ice.Message, arg ...string) {
|
ice.CTX_INIT: {Hand: func(m *ice.Message, arg ...string) {
|
||||||
conf := m.Confm(cli.RUNTIME, "conf")
|
conf := m.Confm(cli.RUNTIME, "conf")
|
||||||
m.Cmd(SPIDE, mdb.CREATE, ice.OPS, kit.Select("http://:9020", conf["ctx_ops"]))
|
m.Cmd(SPIDE, mdb.CREATE, ice.OPS, kit.Select("http://:9020", conf["ctx_ops"]))
|
||||||
m.Cmd(SPIDE, mdb.CREATE, ice.DEV, kit.Select("http://:9020", conf["ctx_dev"]))
|
m.Cmd(SPIDE, mdb.CREATE, ice.DEV, kit.Select("http://contexts.woa.com:80", conf["ctx_dev"]))
|
||||||
m.Cmd(SPIDE, mdb.CREATE, ice.SHY, kit.Select("https://shylinux.com:443", conf["ctx_shy"]))
|
m.Cmd(SPIDE, mdb.CREATE, ice.SHY, kit.Select("https://contexts.com.cn:443", conf["ctx_shy"]))
|
||||||
}},
|
}},
|
||||||
mdb.CREATE: {Name: "create name address", Help: "添加", Hand: func(m *ice.Message, arg ...string) {
|
mdb.CREATE: {Name: "create name address", Help: "添加", Hand: func(m *ice.Message, arg ...string) {
|
||||||
_spide_create(m, m.Option(mdb.NAME), m.Option(ADDRESS))
|
_spide_create(m, m.Option(mdb.NAME), m.Option(ADDRESS))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user