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)


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

#benchmark_cache(path) ⇒ Object



53
54
55
# File 'lib/expressir/cli.rb', line 53

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

#clean(path) ⇒ Object



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

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

#coverage(*paths) ⇒ Object



72
73
74
# File 'lib/expressir/cli.rb', line 72

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

#format(path) ⇒ Object



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

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

#validate(*paths) ⇒ Object



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

def validate(*paths)
  Commands::Validate.new(options).run(paths)
end

#versionObject



77
78
79
# File 'lib/expressir/cli.rb', line 77

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