1
0
mirror of https://shylinux.com/x/icebergs synced 2025-05-03 20:07:01 +08:00
This commit is contained in:
harveyshao 2022-10-04 12:22:54 +08:00
parent dd0a98a73e
commit 801acac1da
2 changed files with 2 additions and 1 deletions

View File

@ -107,6 +107,7 @@ func _system_exec(m *ice.Message, cmd *exec.Cmd) {
if IsSuccess(m) && err.String() == "" {
m.SetAppend()
}
m.Debug("what %v %v", out.String(), err.String())
m.Echo(strings.TrimRight(out.String(), ice.NL))
}()
}

View File

@ -8,7 +8,7 @@ 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", ":")
m.Split(m.Cmdx("cli.system", GREP, "--exclude=.[a-z]*", "--exclude-dir=.[a-z]*", "-rni", arg[1], "."), "file:line:text", ":")
}},
})
}