1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-07 22:22:29 +08:00

feat: add option support for ExecCommand

This commit is contained in:
dudaodong
2023-04-19 14:26:15 +08:00
parent 07f5e0697f
commit 93108bafb9
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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)