Skip to content

brad-jones/goexec

Repository files navigation

goexec

PkgGoDev GoReport GoLang .github/workflows/main.yml semantic-release Conventional Commits KeepAChangelog License

Package goexec is a fluent decorator based API for os/exec.

Looking for v1, see the master branch

Quick Start

go get -u github.com/brad-jones/goexec/v2

package main

import (
	"github.com/brad-jones/goexec/v2"
)

func main() {
	goexec.Run("ping", "-c", "4", "8.8.8.8")
}

Also see further working examples under: https://github.com/brad-jones/goexec/tree/v2/examples