Skip to content

Commit

Permalink
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tool/jt.rb
Original file line number Diff line number Diff line change
@@ -149,6 +149,8 @@ def help
puts ' --asm show assembly (implies --graal)'
puts ' --server run an instrumentation server on port 8080'
puts ' --igv make sure IGV is running and dump Graal graphs after partial escape (implies --graal)'
puts 'jt e 14 + 2 evaluate an expression'
puts 'jt puts 14 + 2 evaluate and print an expression'
puts 'jt test run all mri tests and specs'
puts 'jt test mri run mri tests'
puts 'jt test specs run all specs'
@@ -241,6 +243,14 @@ def run(*args)
end
alias ruby run

def e(*args)
run '-e', args.join(' ')
end

def puts(*args)
e 'puts', *args
end

def test_mri(*args)
env_vars = {
"EXCLUDES" => "test/mri/excludes_truffle"

1 comment on commit 4bd2b79

@chrisseaton
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically runs 'jt run -e' for you.

eg:

$ jt e 14 + 2
$ jt e 'puts "foo"'
foo
$ jt puts 14 + 2
16

Please sign in to comment.