mirror of
https://shylinux.com/x/icebergs
synced 2025-05-03 20:07:01 +08:00
opt some
This commit is contained in:
parent
1439a98ad8
commit
ccf3839fd0
@ -30,7 +30,7 @@ func _inner_ext(name string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func _inner_show(m *ice.Message, ext, file, dir string, arg ...string) {
|
func _inner_show(m *ice.Message, ext, file, dir string, arg ...string) {
|
||||||
if m.Cmdy(mdb.RENDER, ext, file, dir, arg); m.Result() == "" {
|
if m.Cmdy(mdb.ENGINE, ext, file, dir, arg); m.Result() == "" {
|
||||||
if ls := kit.Simple(m.Confv(INNER, kit.Keys("meta.show", ext))); len(ls) > 0 {
|
if ls := kit.Simple(m.Confv(INNER, kit.Keys("meta.show", ext))); len(ls) > 0 {
|
||||||
m.Cmdy(cli.SYSTEM, ls, path.Join(dir, file)).Set(ice.MSG_APPEND)
|
m.Cmdy(cli.SYSTEM, ls, path.Join(dir, file)).Set(ice.MSG_APPEND)
|
||||||
}
|
}
|
||||||
|
@ -33,6 +33,9 @@ func init() {
|
|||||||
mdb.RENDER: {Hand: func(m *ice.Message, arg ...string) {
|
mdb.RENDER: {Hand: func(m *ice.Message, arg ...string) {
|
||||||
m.Cmdy(nfs.CAT, path.Join(arg[2], arg[1]))
|
m.Cmdy(nfs.CAT, path.Join(arg[2], arg[1]))
|
||||||
}},
|
}},
|
||||||
|
mdb.ENGINE: {Hand: func(m *ice.Message, arg ...string) {
|
||||||
|
m.Cmdy(cli.SYSTEM, path.Join(arg[2], arg[1]))
|
||||||
|
}},
|
||||||
}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {}},
|
}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {}},
|
||||||
},
|
},
|
||||||
Configs: map[string]*ice.Config{
|
Configs: map[string]*ice.Config{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user