Skip to content

Commit

Permalink
opal --eval option can now take a file or string
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Sep 26, 2013
1 parent b29b38f commit 13b6be9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/opal/cli.rb
Expand Up @@ -73,6 +73,11 @@ def prepare_eval_code

options[:evals].each do |code|
tempfile.puts 'require "opal"'

if File.exist?(code)
code = File.read(code)
end

tempfile.puts code
end
end
Expand Down

0 comments on commit 13b6be9

Please sign in to comment.