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)


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

#benchmark_cache(path) ⇒ Object



58
59
60
# File 'lib/expressir/cli.rb', line 58

def benchmark_cache(path)
  Commands::BenchmarkCache.new(options).run(path)
end

#clean(path) ⇒ Object



33
34
35
# File 'lib/expressir/cli.rb', line 33

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

#coverage(*paths) ⇒ Object



75
76
77
# File 'lib/expressir/cli.rb', line 75

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

#format(path) ⇒ Object



26
27
28
# File 'lib/expressir/cli.rb', line 26

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

#versionObject



89
90
91
# File 'lib/expressir/cli.rb', line 89

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