mirror of
https://shylinux.com/x/icebergs
synced 2025-05-03 03:57:01 +08:00
opt some
This commit is contained in:
parent
dd0a98a73e
commit
801acac1da
@ -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))
|
||||
}()
|
||||
}
|
||||
|
@ -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", ":")
|
||||
}},
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user