package
1.3.48
Repository: https://github.com/sandwich-go/boost.git
Documentation: pkg.go.dev

# README

xproc

command 辅助函数

  • process 启动、关闭、killSignal 管理
  • process 集管理

例子

tmpFile := filepath.Join(os.TempDir(), "test.sh")
err := xos.FilePutContents(tmpFile, []byte("echo \"GOT ME $1\""))
xpanic.WhenError(err)
var stdOut string
stdOut, err = ShellRun(tmpFile, WithArgs("1.2.0"))
xpanic.WhenError(err)
fmt.Println(stdOut)

Output:

GOT ME 1.2.0