Sha256: b75c10173e7e4c76876b24a71bd3c0d07abb51cfee91b7798ea45e5e4d495db8

Contents?: true

Size: 554 Bytes

Versions: 8

Compression:

Stored size: 554 Bytes

Contents

# frozen_string_literal: true

require "rubycritic/commands/base"
require "skunk/cli/commands/status_reporter"

module Skunk
  module Cli
    module Command
      # Base class for `Skunk` commands. It knows how to build a command with
      # options. It always uses a [Skunk::Command::StatusReporter] as its
      # reporter object.
      class Base < RubyCritic::Command::Base
        def initialize(options)
          @options = options
          @status_reporter = Skunk::Command::StatusReporter.new(@options)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
skunk-0.4.2 lib/skunk/cli/commands/base.rb
skunk-0.4.1 lib/skunk/cli/commands/base.rb
skunk-0.4.0 lib/skunk/cli/commands/base.rb
skunk-0.3.2 lib/skunk/cli/commands/base.rb
skunk-0.3.1 lib/skunk/cli/commands/base.rb
skunk-0.3.0 lib/skunk/cli/commands/base.rb
skunk-0.2.0 lib/skunk/cli/commands/base.rb
skunk-0.1.0 lib/skunk/cli/commands/base.rb