https://github.com/thomasheller/pipes
Support for long/complex shell command pipelines
https://github.com/thomasheller/pipes
Last synced: about 2 months ago
JSON representation
Support for long/complex shell command pipelines
- Host: GitHub
- URL: https://github.com/thomasheller/pipes
- Owner: thomasheller
- License: apache-2.0
- Created: 2019-12-14T12:39:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-14T12:39:31.000Z (over 5 years ago)
- Last Synced: 2023-08-03T13:13:50.502Z (almost 2 years ago)
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pipes
Pipes provides support for long/complex command pipelines.
## Setup
### Prerequisites
Install Go for your platform: https://golang.org
I recommend gimme: https://github.com/travis-ci/gimme
```
mkdir -p ~/bin
curl -sL -o ~/bin/gimme https://raw.githubusercontent.com/travis-ci/gimme/master/gimme
chmod +x ~/bin/gimme
```### Download
Clone this repository into the `src` directory of your
[`$GOPATH`](https://golang.org/doc/code.html#GOPATH)
(default: `~/go/src`):```
git clone https://github.com/thomasheller/pipes ~/go/src/github.com/thomasheller/pipes
```### Build
```
eval $(~/bin/gimme stable)
cd ~/go/src/github.com/thomasheller/pipes
go get
go build
go install
```### Local setup
The binary `pipes` will appear in the `bin` directory of your `$GOPATH`
(default: `~/go/bin`).You can either move the `pipes` binary to a directory that is in your `$PATH`
or add the Go `bin` directory to your `$PATH`.## Usage
### Examples
```
cd examplespipes -from example1.txt -pipe reverse.pipe
pipes -from example1.txt -pipe replace.pipe
pipes -from example2.txt -pipe foo.pipe
```## Improvements (ToDo)
- Output intermediate pipe stages for debugging.
- Cache pipe stages and re-use intermediate stages when only parts of the pipe are changed.