Sha256: 08ac117e3c083d779c117cc428e6bca2c3dedcfb8ae8949957d7e27070030cfd

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true

require "sod"

module Rubysmith
  module CLI
    module Actions
      # Stores SimpleCov flag.
      class SimpleCov < Sod::Action
        include Import[:input]

        description "Add SimpleCov gem."

        on "--[no-]simple_cov"

        default { Container[:configuration].build_simple_cov }

        def call(value = default) = input.build_simple_cov = value
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubysmith-5.2.0 lib/rubysmith/cli/actions/simple_cov.rb