1
0
forked from x/icebergs
icebergs/misc/git/spides.go
2025-01-25 15:15:48 +08:00

24 lines
574 B
Go

package git
import (
ice "shylinux.com/x/icebergs"
"shylinux.com/x/icebergs/base/aaa"
"shylinux.com/x/icebergs/base/ctx"
"shylinux.com/x/icebergs/base/nfs"
)
const SPIDES = "spides"
func init() {
Index.MergeCommands(ice.Commands{
SPIDES: {Name: "spides repos auto", Help: "构架图", Role: aaa.VOID, Hand: func(m *ice.Message, arg ...string) {
if len(arg) == 0 {
m.Cmdy(REPOS)
} else if p := _repos_path(m, arg[0]); len(arg) == 1 {
nfs.DirDeepAll(m, p, "", nil, nfs.PATH).Options(nfs.DIR_ROOT, p+nfs.PS)
ctx.DisplayStory(m, "")
}
}},
})
}