Sha256: 25d881928cb70cc34646072cee588a5d0cb0c8f57438293da148c303e6525053

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 maximum settings.
      class Maximum < Sod::Action
        include Import[:settings]

        using ::Refinements::Struct

        description "Use maximum configuration."

        on "--max"

        default { Container[:settings].build_maximum }

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

Version data entries

7 entries across 7 versions & 1 rubygems

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