lib/ddbcli/cli/evaluate.rb in ddbcli-0.2.4 vs lib/ddbcli/cli/evaluate.rb in ddbcli-0.2.5

- old
+ new

@@ -28,19 +28,19 @@ print_error('No query specified') next end start_time = Time.new - out = driver.execute(query) + out = driver.execute(query, opts.merge(:inline => (tok != '\G'))) elapsed = Time.now - start_time if out.kind_of?(DynamoDB::Driver::Rownum) print_rownum(out, :time => elapsed) elsif out.kind_of?(String) puts out elsif out opts = opts.merge(:inline => (tok != '\G'), :time => elapsed) - print_json(out, opts) + print_json(out, $stdout, opts) end elsif (tok = ss.scan /./) buf << tok # 落ち穂拾い end end