Sha256: e8fa68f96c8451f2400d7521a68f7c9d845d541806430b067c45bee0de859e9d

Contents?: true

Size: 543 Bytes

Versions: 31

Compression:

Stored size: 543 Bytes

Contents

require_relative 'options/stats'
require_relative 'output/stats'

module Inch
  module CLI
    module Command
      class Stats < List
        register_command_as :stats

        def description
          'Show statistics'
        end

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

        def run(*args)
          prepare_codebase(*args)
          context = API::Stats.new(codebase, @options)
          Output::Stats.new(@options, context.objects, context.grade_lists)
        end
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
inch-0.4.4 lib/inch/cli/command/stats.rb
inch-0.4.4.rc4 lib/inch/cli/command/stats.rb
inch-0.4.4.rc3 lib/inch/cli/command/stats.rb
inch-0.4.4.rc2 lib/inch/cli/command/stats.rb
inch-0.4.4.rc1 lib/inch/cli/command/stats.rb
inch-0.4.3 lib/inch/cli/command/stats.rb
inch-0.4.3.rc2 lib/inch/cli/command/stats.rb
inch-0.4.3.rc1 lib/inch/cli/command/stats.rb
inch-0.4.2 lib/inch/cli/command/stats.rb
inch-0.4.1 lib/inch/cli/command/stats.rb
inch-0.4.0 lib/inch/cli/command/stats.rb
inch-0.4.0.rc3 lib/inch/cli/command/stats.rb
inch-0.4.0.rc2 lib/inch/cli/command/stats.rb
inch-0.4.0.rc1 lib/inch/cli/command/stats.rb
inch-0.3.4.rc1 lib/inch/cli/command/stats.rb
inch-0.3.3 lib/inch/cli/command/stats.rb
inch-0.3.3.rc1 lib/inch/cli/command/stats.rb
inch-0.3.2 lib/inch/cli/command/stats.rb
inch-0.3.2.rc2 lib/inch/cli/command/stats.rb
inch-0.3.2.rc1 lib/inch/cli/command/stats.rb