mirror of
https://shylinux.com/x/icebergs
synced 2025-05-05 04:37:01 +08:00
opt draw
This commit is contained in:
parent
0761a4b527
commit
7eaead3ff4
@ -132,6 +132,7 @@ func init() {
|
|||||||
"sh", "true",
|
"sh", "true",
|
||||||
"py", "true",
|
"py", "true",
|
||||||
"shy", "true",
|
"shy", "true",
|
||||||
|
"txt", "true",
|
||||||
"go", "true",
|
"go", "true",
|
||||||
"js", "true",
|
"js", "true",
|
||||||
),
|
),
|
||||||
|
@ -52,6 +52,9 @@ var Index = &ice.Context{Name: "docker", Help: "虚拟机",
|
|||||||
gdb.CLEAR: {Name: "clear", Help: "删除", Hand: func(m *ice.Message, arg ...string) {
|
gdb.CLEAR: {Name: "clear", Help: "删除", Hand: func(m *ice.Message, arg ...string) {
|
||||||
m.Cmdy(_image, "rm", m.Option("IMAGE_ID"))
|
m.Cmdy(_image, "rm", m.Option("IMAGE_ID"))
|
||||||
}},
|
}},
|
||||||
|
web.PULL: {Name: "pull", Help: "更新", Hand: func(m *ice.Message, arg ...string) {
|
||||||
|
m.Cmdy(_image, "pull", m.Option("REPOSITORY"))
|
||||||
|
}},
|
||||||
}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
||||||
if len(arg) > 0 {
|
if len(arg) > 0 {
|
||||||
// 容器详情
|
// 容器详情
|
||||||
@ -65,7 +68,7 @@ var Index = &ice.Context{Name: "docker", Help: "虚拟机",
|
|||||||
m.Sort("REPOSITORY")
|
m.Sort("REPOSITORY")
|
||||||
|
|
||||||
m.Table(func(index int, value map[string]string, head []string) {
|
m.Table(func(index int, value map[string]string, head []string) {
|
||||||
for _, k := range []string{"start", "clear"} {
|
for _, k := range []string{"pull", "start", "clear"} {
|
||||||
m.Push(k, m.Cmdx("_render", web.RENDER.Button, k))
|
m.Push(k, m.Cmdx("_render", web.RENDER.Button, k))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user