mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 09:34:05 +08:00
opt some
This commit is contained in:
parent
a8f7cccf33
commit
b0de72c204
@ -38,6 +38,7 @@ func _status_tags(m *ice.Message, repos string) {
|
|||||||
m.GoToast(TAGS, func(toast func(string, int, int)) {
|
m.GoToast(TAGS, func(toast func(string, int, int)) {
|
||||||
count, total := 0, len(vs)
|
count, total := 0, len(vs)
|
||||||
toast(cli.BEGIN, count, total)
|
toast(cli.BEGIN, count, total)
|
||||||
|
defer m.PushRefresh()
|
||||||
|
|
||||||
for k := range vs {
|
for k := range vs {
|
||||||
if k != repos && repos != "" {
|
if k != repos && repos != "" {
|
||||||
@ -82,7 +83,6 @@ func _status_tags(m *ice.Message, repos string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
toast(ice.SUCCESS, count, count)
|
toast(ice.SUCCESS, count, count)
|
||||||
m.PushRefresh()
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
func _status_each(m *ice.Message, title string, cmds ...string) {
|
func _status_each(m *ice.Message, title string, cmds ...string) {
|
||||||
@ -274,6 +274,7 @@ func init() {
|
|||||||
}
|
}
|
||||||
_repos_cmd(m, m.Option(REPOS), TAG, m.Option(VERSION))
|
_repos_cmd(m, m.Option(REPOS), TAG, m.Option(VERSION))
|
||||||
_repos_cmd(m, m.Option(REPOS), PUSH, "--tags")
|
_repos_cmd(m, m.Option(REPOS), PUSH, "--tags")
|
||||||
|
m.ProcessRefresh3ms()
|
||||||
}},
|
}},
|
||||||
code.BINPACK: {Name: "binpack", Help: "打包模式", Hand: func(m *ice.Message, arg ...string) {
|
code.BINPACK: {Name: "binpack", Help: "打包模式", Hand: func(m *ice.Message, arg ...string) {
|
||||||
m.Cmdy(code.VIMER, code.BINPACK)
|
m.Cmdy(code.VIMER, code.BINPACK)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user