Sha256: c7853cfb2c8f5cab08c04986c41bc750b3a1a279c1a9dbe91980972b4016ff4b

Contents?: true

Size: 471 Bytes

Versions: 2

Compression:

Stored size: 471 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

2 entries across 2 versions & 1 rubygems

Version Path
rubysmith-5.1.0 lib/rubysmith/cli/actions/maximum.rb
rubysmith-5.0.1 lib/rubysmith/cli/actions/maximum.rb