matthewmueller / shell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:MIT License


Languages

Language:Go 100.0%