1
0
forked from x/icebergs
icebergs/base/nfs/grep.go
2022-10-15 11:45:52 +08:00

15 lines
397 B
Go

package nfs
import ice "shylinux.com/x/icebergs"
const GREP = "grep"
func init() {
Index.MergeCommands(ice.Commands{
GREP: {Name: "grep word path auto", Help: "搜索", Hand: func(m *ice.Message, arg ...string) {
m.Option("cmd_dir", arg[1])
m.Split(m.Cmdx("cli.system", GREP, "--exclude=.[a-z]*", "--exclude-dir=.[a-z]*", "-rni", arg[0], ice.PT), "file:line:text", ice.DF)
}},
})
}