Class: SixthSense::CLI
- Inherits:
-
Object
- Object
- SixthSense::CLI
- Defined in:
- lib/sixth_sense/cli.rb
Instance Method Summary collapse
Instance Method Details
#run(argv) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/sixth_sense/cli.rb', line 21 def run(argv) command = argv.shift || "analyze" case command when "analyze" then analyze(argv) when "guard" then guard(argv) when "baseline" then baseline(argv) when "explain" then explain(argv) when "calibrate" then calibrate(argv) when "mutation-plan" then mutation_plan(argv) when "mutation-run" then mutation_run(argv) else warn "Unknown command: #{command}" 2 end end |