Sha256: 57fab03a3de9c49e0a1e7157886d744abea3964bf78d3c1b3c4a38453d279335

Contents?: true

Size: 559 Bytes

Versions: 6

Compression:

Stored size: 559 Bytes

Contents

require "inch/cli/command/options/stats"
require "inch/cli/command/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

6 entries across 6 versions & 1 rubygems

Version Path
inch-0.5.0.rc5 lib/inch/cli/command/stats.rb
inch-0.5.0.rc4 lib/inch/cli/command/stats.rb
inch-0.4.10 lib/inch/cli/command/stats.rb
inch-0.4.9 lib/inch/cli/command/stats.rb
inch-0.4.8 lib/inch/cli/command/stats.rb
inch-0.4.7 lib/inch/cli/command/stats.rb