It's pronounced like rubbish

gwen 51e7cfb384 asdasdasdasdsadasdasdasd il y a 1 an
.gitignore 5434763c03 ignore swap files il y a 5 ans
LICENSE c151e564c3 Initial commit il y a 5 ans
README.md 51e7cfb384 asdasdasdasdsadasdasdasd il y a 1 an
examples.rb 58a3687a38 fixed the - to do string thing il y a 5 ans
rubysh.png 170b2eecb1 add logo lol il y a 3 ans
rubysh.rb 65b935ad95 something il y a 4 ans

README.md

rubysh

It's pronounced like rubbish

What is it?

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

-curl("-s","https://gwenpri.me").grep("\"<i>\"")

Lastly you can also pipe arbitrary strings into a commands stdin like so

"input".grep("-ro [nu]")

yes I know this is a crime. thank you for your patronage.