From c11845cef97a1fb45a475f05a9e21b320cc6738d Mon Sep 17 00:00:00 2001 From: kunlongli Date: Wed, 12 Jul 2023 16:56:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=94=AF=E6=8C=81=E5=88=9B=E5=BB=BAStan?= =?UTF-8?q?dardAdapter=E6=97=B6=E8=AE=BE=E7=BD=AE=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- standard-adapter/pkg/adapter.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/standard-adapter/pkg/adapter.go b/standard-adapter/pkg/adapter.go index f02e1d2..a7782d9 100644 --- a/standard-adapter/pkg/adapter.go +++ b/standard-adapter/pkg/adapter.go @@ -10,8 +10,8 @@ import ( // StandardAdapterExecutor 标准扫描器适配器 type StandardAdapterExecutor struct { - cmd string - workDir string + Cmd string + WorkDir string } // Execute 执行扫描 @@ -39,7 +39,7 @@ func (e StandardAdapterExecutor) Execute(_ *object.ToolConfig, file *os.File) (* "--input", toolInputFile, "--output", toolOutputFile, } - err = util.ExecAndLog(e.cmd, args, e.workDir) + err = util.ExecAndLog(e.Cmd, args, e.WorkDir) if err != nil { return nil, err }