/shell

Primary LanguageGoMIT LicenseMIT

Shell

GoDoc

Simple package for running shell scripts with Go. Pairs well with gorun.

Example

/// 2>/dev/null ; gorun "$0" "$@" ; exit $?

package main

import (
	"fmt"

	"github.com/matthewmueller/shell"
)

var sh = shell.Runf

func main() {
	hi := sh("echo %q", "hi")
	fmt.Printf(hi)
}

Install

go get -u github.com/matthewmueller/shell

License

MIT