Class: Inch::CLI::Command::Stats

Inherits:
List show all
Defined in:
lib/inch/cli/command/stats.rb

Instance Attribute Summary

Attributes inherited from Base

#source_parser

Instance Method Summary collapse

Methods inherited from BaseList

#initialize, #prepare_list

Methods inherited from Base

#initialize, #name, run

Methods included from TraceHelper

#debug, #trace, #trace_header

Constructor Details

This class inherits a constructor from Inch::CLI::Command::BaseList

Instance Method Details

#descriptionObject



5
6
7
# File 'lib/inch/cli/command/stats.rb', line 5

def description
  'Lists all objects with their results'
end

#run(*args) ⇒ Object



13
14
15
16
# File 'lib/inch/cli/command/stats.rb', line 13

def run(*args)
  prepare_list(*args)
  Output::Stats.new(@options, objects, @ranges)
end

#usageObject



9
10
11
# File 'lib/inch/cli/command/stats.rb', line 9

def usage
  'Usage: inch stats [paths] [options]'
end