Sha256: 4617304b2db565d16365a930c43ead81c7ef79e293292f5d10eb4fc3b01992d5

Contents?: true

Size: 470 Bytes

Versions: 9

Compression:

Stored size: 470 Bytes

Contents

# frozen_string_literal: true

require "refinements/structs"
require "sod"

module Rubysmith
  module CLI
    module Actions
      # Forces maximum configuration.
      class Maximum < Sod::Action
        include Import[:input]

        using ::Refinements::Structs

        description "Use maximum options."

        on "--max"

        default { Container[:configuration].build_maximum }

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rubysmith-5.9.0 lib/rubysmith/cli/actions/maximum.rb
rubysmith-5.8.1 lib/rubysmith/cli/actions/maximum.rb
rubysmith-5.8.0 lib/rubysmith/cli/actions/maximum.rb
rubysmith-5.7.0 lib/rubysmith/cli/actions/maximum.rb
rubysmith-5.6.0 lib/rubysmith/cli/actions/maximum.rb
rubysmith-5.5.0 lib/rubysmith/cli/actions/maximum.rb
rubysmith-5.4.0 lib/rubysmith/cli/actions/maximum.rb
rubysmith-5.3.0 lib/rubysmith/cli/actions/maximum.rb
rubysmith-5.2.0 lib/rubysmith/cli/actions/maximum.rb