Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ncabatoff/piper
piper is a Go library for working with pipes, including cross-host pipes via golang.org/x/crypto/ssh.
https://github.com/ncabatoff/piper
Last synced: about 1 month ago
JSON representation
piper is a Go library for working with pipes, including cross-host pipes via golang.org/x/crypto/ssh.
- Host: GitHub
- URL: https://github.com/ncabatoff/piper
- Owner: ncabatoff
- License: mit
- Created: 2017-06-24T01:50:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-03T22:48:52.000Z (over 7 years ago)
- Last Synced: 2024-10-15T13:30:01.499Z (3 months ago)
- Language: Go
- Size: 144 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
The main purpose of this package is to provide the Pipe function,
and to allow that to operate on different kinds of pipes - at
present, local pipes created with os/exec and ssh pipes created
with golang.org/x/crypto/ssh.There are a few more basic non-pipe operations provided:
RunCmd executes a command with stdout going to /dev/null. stderr
is captured and included in the error returned if the command exits
with non zero return status.RunCmdStrIn is like RunCmd but accepts a string which will be
written to the stdin of the command.RunCmdCapture is like RunCmd but also returns the stdout and
stderr.RunCmdStrInCapture is like RunCmdStrIn but also returns the stdout
and stderr.