Class: Expressir::Cli
- Inherits:
-
Thor
- Object
- Thor
- Expressir::Cli
- Defined in:
- lib/expressir/cli.rb
Class Method Summary collapse
-
.exit_on_failure? ⇒ Boolean
Exit with error code on command failures.
Instance Method Summary collapse
- #benchmark(path) ⇒ Object
- #benchmark_cache(path) ⇒ Object
- #clean(path) ⇒ Object
- #coverage(*paths) ⇒ Object
- #format(path) ⇒ Object
- #version ⇒ Object
Class Method Details
.exit_on_failure? ⇒ Boolean
Exit with error code on command failures
21 22 23 |
# File 'lib/expressir/cli.rb', line 21 def self.exit_on_failure? true end |
Instance Method Details
#benchmark(path) ⇒ Object
45 46 47 |
# File 'lib/expressir/cli.rb', line 45 def benchmark(path) Commands::Benchmark.new().run(path) end |
#benchmark_cache(path) ⇒ Object
58 59 60 |
# File 'lib/expressir/cli.rb', line 58 def benchmark_cache(path) Commands::BenchmarkCache.new().run(path) end |
#clean(path) ⇒ Object
33 34 35 |
# File 'lib/expressir/cli.rb', line 33 def clean(path) Commands::Clean.new().run(path) end |
#coverage(*paths) ⇒ Object
75 76 77 |
# File 'lib/expressir/cli.rb', line 75 def coverage(*paths) Commands::Coverage.new().run(paths) end |