A simple library to generate shell scripts from Ruby
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
README.md
grush.gemspec

README.md

grush

I DON'T EVEN REMEMBER WHY I MADE THIS, GOSH.

require 'grush'

Grush::Script.new {
  echo 'Hallo'

  (cat 'wat') | (sed 's/cat/dog/') > 'wat.dog'
}

That should generate this:

(echo 'Hallo')
((cat 'wat') | (sed 's/cat/dog/')) > 'wat.dog'

Sounds useless? Maybe, maybe not.