Module: MethodRay::Commands
- Defined in:
- lib/methodray/commands.rb
Class Method Summary collapse
- .check(args) ⇒ Object
- .clear_cache(args) ⇒ Object
- .help ⇒ Object
- .version ⇒ Object
- .watch(args) ⇒ Object
Class Method Details
.check(args) ⇒ Object
28 29 30 |
# File 'lib/methodray/commands.rb', line 28 def check(args) exec_rust_cli('check', args) end |
.clear_cache(args) ⇒ Object
36 37 38 |
# File 'lib/methodray/commands.rb', line 36 def clear_cache(args) exec_rust_cli('clear-cache', args) end |
.help ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/methodray/commands.rb', line 8 def help puts <<~HELP MethodRay v#{MethodRay::VERSION} - A fast static analysis tool for Ruby methods. Usage: methodray help # Show this help methodray version # Show version methodray check [FILE] [OPTIONS] # Type check a Ruby file methodray watch FILE # Watch file for changes and auto-check Examples: methodray check app/models/user.rb methodray watch app/models/user.rb HELP end |
.version ⇒ Object
24 25 26 |
# File 'lib/methodray/commands.rb', line 24 def version puts "MethodRay v#{MethodRay::VERSION}" end |
.watch(args) ⇒ Object
32 33 34 |
# File 'lib/methodray/commands.rb', line 32 def watch(args) exec_rust_cli('watch', args) end |