1
0
forked from x/icebergs
icebergs/base/nfs/grep.go
2022-10-04 12:22:54 +08:00

15 lines
391 B
Go

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