iPipeTo: An interactive cli workflow

23
iPipeTo An interactive cli workflow https://github.com/ruyadorno/ipt

Transcript of iPipeTo: An interactive cli workflow

iPipeToAn interactive cli workflow

https://github.com/ruyadorno/ipt

The Command-line interface

• Command-line interfaces are often preferred by more advanced computer users, as they often provide a more concise and powerful means to control a program or operating system.

• Programs with command-line interfaces are generally easier to automate via scripting.

😉

The Command-line interface

• Lack/loss of context awareness

😞

Inquirer.js• A collection of common interactive command line user interfaces

Initial implementations

grunt-menu

git-bc

ntl

• All very specific

• Not really modular or reusable

😕

Unix PipesCommands can be composed together using

Unix standard output and input

Introducing: iPipeTo

• Takes a list of items from the standard input

• Builds an interactive menu using Inquirer.js

• Allows for user to manually filter items

• Outputs selected item(s) to the standard output

Go get itInstall it using npm:

Demo time

Using pipes to send selected value to next command

Using the multiple choices option

Using file as input data

Using the copy to clipboard feature

One more thing...

Workflow GalleryA showcase of great ideas for aliases/functions

That's it!Thank you very much,for more info visit: https://github.com/

ruyadorno/ipt

http://ruyadorno.com! "