Sha256: 3772e16592b9eb855ec7d58f51b6dd33c77e435b45eb8854e6138b663a5b8a93

Contents?: true

Size: 468 Bytes

Versions: 10

Compression:

Stored size: 468 Bytes

Contents

# frozen_string_literal: true

require "refinements/struct"
require "sod"

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

        using ::Refinements::Struct

        description "Use maximum options."

        on "--max"

        default { Container[:configuration].build_maximum }

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rubysmith-6.10.0 lib/rubysmith/cli/actions/maximum.rb
rubysmith-6.9.0 lib/rubysmith/cli/actions/maximum.rb
rubysmith-6.6.0 lib/rubysmith/cli/actions/maximum.rb
rubysmith-6.5.0 lib/rubysmith/cli/actions/maximum.rb
rubysmith-6.4.0 lib/rubysmith/cli/actions/maximum.rb
rubysmith-6.3.0 lib/rubysmith/cli/actions/maximum.rb
rubysmith-6.2.1 lib/rubysmith/cli/actions/maximum.rb
rubysmith-6.2.0 lib/rubysmith/cli/actions/maximum.rb
rubysmith-6.1.0 lib/rubysmith/cli/actions/maximum.rb
rubysmith-6.0.0 lib/rubysmith/cli/actions/maximum.rb