runcmd

command module
v0.0.0-...-f6a8fe6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

README

runcmd

Wrapper for cli apps.

Write less commands for your frequent apps. Simple but useful.

Install
$ go get github.com/abiosoft/runcmd
Usage

This wraps docker, no need to type docker, just the commands.

$ runcmd docker
docker> -v
Docker version 1.10.0, build 590d5108
docker> run -it alpine sh
#/ |

This wraps go.

$ runcmd go
go> build -o outfile
go> test
...

You can include args or subcommands.

$ runcmd docker -H 127.0.0.1:8333 run
docker -H 127.0.0.1:8333 run> -it alpine sh
#/ |

Multiline

$ runcmd echo
echo> Hi \
... there
Hi
there
echo> << EOF
... Hi
... there
... EOF
Hi
there

Custom Environment Variables

runcmd go
go> .env GOOS linux
go> build

Inbuilt commands starts with . to avoid collision with the wrapped cli app.

.env    list/add environment variable
.switch switch to another command
.clear  clear screen
.help   show this help
Demo

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL