GithubHelp home page GithubHelp logo

iamg-r00t / pipeline Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codekitchen/pipeline

0.0 1.0 1.0 151 KB

the `pipeline` shell command

License: MIT License

Makefile 0.37% C 74.48% Ruby 8.14% M4 6.40% Dockerfile 2.77% Shell 7.84%
forked

pipeline's Introduction

The pipeline shell command

A utility to make building up a pipeline of shell commands easier, especially when doing data exploration.

If you've ever found yourself writing shell code, in an endless loop of piping output to less, scanning it over and making changes, then pipeline can make your life just a little bit more beautiful.

This is just a thin wrapper around your shell, not some totally new data mining tool. Launch pipeline, and start typing shell commands as usual. Every time you hit enter you'll see a one-screen preview of your output, similar to piping output to less, but your cursor will stay right where it was for further editing.

Ctrl-C when you're done, to exit.

Installation

Pipeline depends only on ncurses and readline (or libedit), both of which ship with MacOS and most common Linux distros.

MacOS

Install with Homebrew.

brew tap codekitchen/pipeline
brew install pipeline

From Source

You can download the latest release tarball from the releases page, or git clone the repo to build the master branch.

# only run this command if building from git, skip this if using the tarballs from release page
autoreconf -fi

./configure

make

After make finishes, you'll be able to use ./pipeline. You can also install it using:

sudo make install

Windows

It might work under MinGW/GitBash? Please let me know.

Docker Container

The commands below will assist in the following;

  • Get a dockerfile, from this repository.
  • Build a lightweight docker image with the powerline shell command.
  • Add an alias that will enable you to call the powerline docker image as a container.
  • The Docker container will automatically mount the directory path you are at.
  • It will also spawn the powerline shell command, so you won't feel as if you are in a container.

You will exit the docker container, when exiting the powerline shell command, the docker container will be removed after exiting the container.

# Get the dockerfile2 file
curl -L https://raw.githubusercontent.com/iAmG-r00t/pipeline/master/Dockerfile2 -o pipeline-dockerfile

# Build a powerline image
docker build -t pipeline:latest -f pipeline-dockerfile .

# Alias
alias pipeline='docker run -it --rm --name pipeline -v `pwd`:/root pipeline:latest' 

Note: Docker has to be already installed.

pipeline's People

Contributors

codekitchen avatar iamg-r00t avatar

Watchers

 avatar

Forkers

wealth-arubayi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.