From 93108bafb93517190e55ce6831fca61946a21183 Mon Sep 17 00:00:00 2001 From: dudaodong Date: Wed, 19 Apr 2023 14:26:15 +0800 Subject: [PATCH] feat: add option support for ExecCommand --- docs/system.md | 2 +- docs/system_zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/system.md b/docs/system.md index 8b1a737..4886e76 100644 --- a/docs/system.md +++ b/docs/system.md @@ -229,7 +229,7 @@ import ( ) func main() { - out, errout, err := system.ExecCommand("ls") + out, errout, err := system.ExecCommand("ls", system.WithForeground()) fmt.Println(out) fmt.Println(errout) fmt.Println(err) diff --git a/docs/system_zh-CN.md b/docs/system_zh-CN.md index 95ef795..e08a934 100644 --- a/docs/system_zh-CN.md +++ b/docs/system_zh-CN.md @@ -229,7 +229,7 @@ import ( ) func main() { - out, errout, err := system.ExecCommand("ls") + out, errout, err := system.ExecCommand("ls", system.WithForeground()) fmt.Println(out) fmt.Println(errout) fmt.Println(err)