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
- #validate(*paths) ⇒ Object
- #version ⇒ Object
Class Method Details
.exit_on_failure? ⇒ Boolean
Exit with error code on command failures
16 17 18 |
# File 'lib/expressir/cli.rb', line 16 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) Commands::Benchmark.new().run(path) end |
#benchmark_cache(path) ⇒ Object
53 54 55 |
# File 'lib/expressir/cli.rb', line 53 def benchmark_cache(path) Commands::BenchmarkCache.new().run(path) end |
#clean(path) ⇒ Object
28 29 30 |
# File 'lib/expressir/cli.rb', line 28 def clean(path) Commands::Clean.new().run(path) end |
#coverage(*paths) ⇒ Object
72 73 74 |
# File 'lib/expressir/cli.rb', line 72 def coverage(*paths) Commands::Coverage.new().run(paths) end |
#format(path) ⇒ Object
21 22 23 |
# File 'lib/expressir/cli.rb', line 21 def format(path) Commands::Format.new().run(path) end |