1
0
forked from x/icebergs
icebergs/misc/git/spide.go
2023-10-10 01:13:40 +08:00

23 lines
518 B
Go

package git
import (
ice "shylinux.com/x/icebergs"
"shylinux.com/x/icebergs/base/ctx"
"shylinux.com/x/icebergs/base/nfs"
)
const SPIDE = "spide"
func init() {
Index.MergeCommands(ice.Commands{
SPIDE: {Name: "spide repos auto", Help: "构架图", 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, "")
}
}},
})
}