Project

u8

0.0
No commit activity in last 3 years
No release in over 3 years
Run shell commands with models instead of running strings
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 2.0.0

Runtime

>= 0
 Project Readme

eval-U8 shell commands in ruby code!

Evaluate an ls and put it's contents (a list of files) into the files variable.

files = U8.ls

If you want to drop the U8 namespace, you can shell and refer to commands directly. For instance:

Eval an ls, then map the elements to the contents of each file.

U8.shell do

  ls.map{|file| cat file}

end

U8.interactive will allow you to run arbitrary commands, and print their results.

Try running rash from the bin directory if you would like to try the poor man's ruby shell.

Building a shell wrapper?

git = U8.command :git

git :add, filename
git :commit

Or

curl = U8.command :curl, prefix: '--'
curl 'http://www.awesome.com'