Project

zxc

0.0
The project is in a healthy, maintained state
`zxc` is a command line program that takes in text, turns it into a tree, and exposes procedures to manipulate this tree.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

Zxc

zxc allows you to quickly perform a few common opperations on STDIN, for example:

echo $PATH | zxc split : split / present print

The command chain above will

  1. get the list of directories in your $PATH,
  2. split it into a list, using ":" as a delimiter,
  3. split each element of said list into a sublist, using "/" as a delimiter,
  4. remove empty elements,
  5. print every element of every sublist.

This works by generating a tree, where each node contains text, and exposing "steps" to the user, which are procedures over said tree, In the example above, "split", "present" and "print" are steps, the first one taking arguments.

Use zxc -H to read a manual listing available steps.

Installation

Install the gem and add to the application's Gemfile by executing:

bundle add zxc

If bundler is not being used to manage dependencies, install the gem by executing:

gem install zxc

Usage

zxc [OPTIONS] [STEP [ARG]...]...

zxc reads text from STDIN, converts it into the root node of a tree, and applies operations (steps) onto said tree.

Options

  • -h , --help: Displays a short help message and exits
  • -H ", --Help: Displays this page and exits

License

The gem is available as open source under the terms of the MIT License.