Skip to content

escribano/shell

 
 

Repository files navigation

shell

Utilities for interacting with the shell. Inspired by libphutil.

Quick example:

// Generates shell command to find number of go files on a remote machine
host := "foo.com"
findCmd := shell.Sprintf("find . -iname %s | wc -l", "*.go")
remoteCmd := shell.Sprintf("ssh ubuntu@%s %s", host, findCmd)
fmt.Println(remoteCmd)
// Output: ssh ubuntu@foo.com 'find . -iname '\''*.go'\'' | wc -l'

See https://godoc.org/github.com/keegancsmith/shell for more information.

About

Go utility library for interacting with the shell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%