Class: Expressir::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/expressir/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Exit with error code on command failures

Returns:

  • (Boolean)


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(options).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(options).run(path)
end

#clean(path) ⇒ Object



28
29
30
# File 'lib/expressir/cli.rb', line 28

def clean(path)
  Expressir::Commands::Clean.new(options).run(path)
end

#coverage(*paths) ⇒ Object



70
71
72
# File 'lib/expressir/cli.rb', line 70

def coverage(*paths)
  Expressir::Commands::Coverage.new(options).run(paths)
end

#format(path) ⇒ Object



21
22
23
# File 'lib/expressir/cli.rb', line 21

def format(path)
  Expressir::Commands::Format.new(options).run(path)
end

#versionObject



84
85
86
# File 'lib/expressir/cli.rb', line 84

def version
  Expressir::Commands::Version.new(options).run
end