1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00
This commit is contained in:
harveyshao 2022-01-17 17:59:36 +08:00
parent 79ebe307e7
commit ea1b19f7b0

14
base/nfs/grep.go Normal file
View File

@ -0,0 +1,14 @@
package nfs
import ice "shylinux.com/x/icebergs"
const GREP = "grep"
func init() {
Index.Merge(&ice.Context{Commands: map[string]*ice.Command{
GREP: {Name: "grep path word auto", Help: "搜索", Hand: func(m *ice.Message, c *ice.Context, cmd string, 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", ":")
}},
}})
}