1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-13 09:12:28 +08:00

feat: add option support for ExecCommand

This commit is contained in:
dudaodong
2023-04-19 14:25:31 +08:00
parent 4ba91d7e4c
commit 07f5e0697f
4 changed files with 23 additions and 6 deletions

View File

@@ -45,7 +45,7 @@ func TestExecCommand(t *testing.T) {
assert := internal.NewAssert(t, "TestExecCommand")
// linux or mac
stdout, stderr, err := ExecCommand("ls")
stdout, stderr, err := ExecCommand("ls", WithForeground())
t.Log("std out: ", stdout)
t.Log("std err: ", stderr)
assert.Equal("", stderr)