|John 65b935ad95 something||3 months ago|
|.gitignore||1 year ago|
|LICENSE||1 year ago|
|README.md||1 year ago|
|examples.rb||1 year ago|
|rubysh.rb||3 months ago|
Rubysh is a little DSL that scans your systems PATH and exposes everything there as a funtion. For example:
-pwd -ls(" -a")
would be equivalent to
system("pwd") system("ls -a")
If you use a + instead of a minus the commend is run as a sub process and the stdout is returned to ruby as a string.
output = +ls p output #would be the contents of your current directory
You can also pipe commands together like in a bash script
Lastly you can also pipe arbitrary strings into a commands stdin like so
yes I know this is a crime. thank you for your patronage.