1
0
mirror of https://shylinux.com/x/icebergs synced 2025-05-05 04:37:01 +08:00
This commit is contained in:
shaoying 2021-10-17 00:07:26 +08:00
parent e5bac606f1
commit 805759a171
2 changed files with 5 additions and 7 deletions

View File

@ -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]
}

View File

@ -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))