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
7 8 9 |
# File 'lib/expressir/cli.rb', line 7 def self.exit_on_failure? true end |
Instance Method Details
#benchmark(path) ⇒ Object
40 41 42 |
# File 'lib/expressir/cli.rb', line 40 def benchmark(path) Expressir::Commands::Benchmark.new().run(path) end |
#benchmark_cache(path) ⇒ Object
53 54 55 |
# File 'lib/expressir/cli.rb', line 53 def benchmark_cache(path) Expressir::Commands::BenchmarkCache.new().run(path) end |
#clean(path) ⇒ Object
28 29 30 |
# File 'lib/expressir/cli.rb', line 28 def clean(path) Expressir::Commands::Clean.new().run(path) end |
#coverage(*paths) ⇒ Object
70 71 72 |
# File 'lib/expressir/cli.rb', line 70 def coverage(*paths) Expressir::Commands::Coverage.new().run(paths) end |