mirror of
https://shylinux.com/x/icebergs
synced 2025-05-06 13:17:03 +08:00
opt some
This commit is contained in:
parent
87e8036cfa
commit
056684387a
@ -48,6 +48,9 @@ func _dream_list(m *ice.Message) *ice.Message {
|
||||
}
|
||||
|
||||
func _dream_show(m *ice.Message, name string) {
|
||||
if m.Warn(name == "") {
|
||||
return
|
||||
}
|
||||
if !strings.Contains(name, "-") || !strings.HasPrefix(name, "20") {
|
||||
name = m.Time("20060102-") + name
|
||||
}
|
||||
@ -123,7 +126,7 @@ func init() {
|
||||
switch arg[0] {
|
||||
case nfs.REPOS:
|
||||
m.Cmd("web.code.git.server", func(value ice.Maps) {
|
||||
m.Push(nfs.PATH, MergeLink(m, path.Join("/x/", value[nfs.PATH]+".git")))
|
||||
m.Push(nfs.PATH, MergeLink(m, path.Join("/x/", path.Clean(value[nfs.PATH])+".git")))
|
||||
})
|
||||
m.Sort(nfs.PATH)
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user