Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/clarketm/go-bash-wrapper

Run bash scripts with Golang
https://github.com/clarketm/go-bash-wrapper

bash exec golang wrapper

Last synced: 1 day ago
JSON representation

Run bash scripts with Golang

Awesome Lists containing this project

README

        

# [go-bash-wrapper](https://godoc.org/github.com/clarketm/go-bash-wrapper)
Run bash scripts with Golang

## Installation

#### Golang
```shell
$ go get -u github.com/clarketm/go-bash-wrapper
```

## Usage

```shell
# Basic usage
$ go-bash-wrapper ~/path/to/script
```

```shell
# Forward command line arguments
$ go-bash-wrapper ~/path/to/script arg1 arg2
```

You can see the full reference documentation for the **go-bash-wrapper** package at [godoc.org](https://godoc.org/github.com/clarketm/myip), or through go's standard documentation system:
```bash
$ godoc -http=:6060

# Open browser to: "http://localhost:6060/pkg/github.com/clarketm/myip" to view godoc.
```