Sha256: 2c55eb5dc1839fa64d730b7815dc378b781c91fd97f7e2ce867b91dcb675c5f0

Contents?: true

Size: 473 Bytes

Versions: 7

Compression:

Stored size: 473 Bytes

Contents

# frozen_string_literal: true

require "refinements/struct"
require "sod"

module Rubysmith
  module CLI
    module Actions
      # Forces minimum settings.
      class Minimum < Sod::Action
        include Import[:settings]

        using ::Refinements::Struct

        description "Use minimum configuration."

        on "--min"

        default { Container[:settings].build_minimum }

        def call(*) = settings.merge! settings.minimize
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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