mirror of
https://shylinux.com/x/icebergs
synced 2025-05-04 20:37:00 +08:00
opt some
This commit is contained in:
parent
e5bac606f1
commit
805759a171
@ -30,13 +30,11 @@ func _spide_go(m *ice.Message, file string) {
|
||||
case "w", "e":
|
||||
return
|
||||
ls[0] = "-" + ls[0] + ":" + strings.TrimPrefix(ls[len(ls)-1], "type:")
|
||||
case "-":
|
||||
return
|
||||
case "m":
|
||||
if strings.HasPrefix(ls[5], "ctype") {
|
||||
if strings.HasPrefix(ls[6], "ntype") {
|
||||
return
|
||||
} else if strings.HasPrefix(ls[5], "ctype") {
|
||||
ls[0] = strings.TrimPrefix(ls[5], "ctype:") + ":" + ls[0]
|
||||
} else if strings.HasPrefix(ls[6], "ntype") {
|
||||
ls[0] = "-" + ls[0]
|
||||
} else {
|
||||
ls[0] = ls[3] + ":" + ls[0]
|
||||
}
|
||||
|
@ -156,12 +156,12 @@ func init() {
|
||||
m.Cmdy(cli.SYSTEM, GIT, COMMIT, "-am", m.Option(kit.MDB_TEXT), ice.Option{cli.CMD_DIR, _repos_path(m.Option(kit.MDB_NAME))})
|
||||
m.ProcessBack()
|
||||
}},
|
||||
mdb.INPUTS: {Name: "inputs", Help: "补全", Hand: func(m *ice.Message, arg ...string) {
|
||||
mdb.INPUTS: {Name: "inputs tags", Help: "补全", Hand: func(m *ice.Message, arg ...string) {
|
||||
switch arg[0] {
|
||||
case kit.MDB_NAME:
|
||||
m.Cmdy(REPOS, ice.OptionFields("name,time"))
|
||||
|
||||
case "version":
|
||||
case "tags", "version":
|
||||
ls := kit.Split(strings.TrimPrefix(kit.Split(m.Option("tags"), "-")[0], "v"), ".")
|
||||
if v := kit.Int(ls[2]); v < 9 {
|
||||
m.Push("version", kit.Format("v%v.%v.%v", ls[0], ls[1], v+1))
|
||||
|
Loading…
x
Reference in New Issue
Block a user