lib/arql/app.rb in arql-0.1.9 vs lib/arql/app.rb in arql-0.1.10

- old
+ new

@@ -62,11 +62,13 @@ append_sql if should_append_sql? if effective_config[:code].present? eval(effective_config[:code]) elsif effective_config[:args].present? effective_config[:args].each { |rb| load(rb) } - else + elsif STDIN.isatty run_repl! + else + eval(STDIN.read) end end def run_repl! Repl.new