Sha256: 70a7fb26069c8b10c6448c1591cd130233d928ba902070c8967dd1220f533720

Contents?: true

Size: 431 Bytes

Versions: 8

Compression:

Stored size: 431 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add Refinements gem."

        on "--[no-]refinements"

        default { Container[:settings].build_refinements }

        def call(boolean) = settings.build_refinements = boolean
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rubysmith-7.9.0 lib/rubysmith/cli/actions/refinements.rb
rubysmith-7.8.0 lib/rubysmith/cli/actions/refinements.rb
rubysmith-7.7.0 lib/rubysmith/cli/actions/refinements.rb
rubysmith-7.6.0 lib/rubysmith/cli/actions/refinements.rb
rubysmith-7.5.0 lib/rubysmith/cli/actions/refinements.rb
rubysmith-7.4.0 lib/rubysmith/cli/actions/refinements.rb
rubysmith-7.3.0 lib/rubysmith/cli/actions/refinements.rb
rubysmith-7.2.0 lib/rubysmith/cli/actions/refinements.rb