From 801acac1da51585ed873fdc1b068d23c6aeea0de Mon Sep 17 00:00:00 2001 From: harveyshao Date: Tue, 4 Oct 2022 12:22:54 +0800 Subject: [PATCH] opt some --- base/cli/system.go | 1 + base/nfs/grep.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/base/cli/system.go b/base/cli/system.go index 7fbceb11..89f1edb1 100644 --- a/base/cli/system.go +++ b/base/cli/system.go @@ -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)) }() } diff --git a/base/nfs/grep.go b/base/nfs/grep.go index b872f8fd..2552dd48 100644 --- a/base/nfs/grep.go +++ b/base/nfs/grep.go @@ -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", ":") }}, }) }