Sha256: 90c43c2af46dc3e8c0ade22b93472e392a5c775e04da15eeb1fe43a53038b15a

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 minimum configuration.
      class Minimum < Sod::Action
        include Import[:input]

        using ::Refinements::Struct

        description "Use minimum options."

        on "--min"

        default { Container[:configuration].build_minimum }

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

Version data entries

10 entries across 10 versions & 1 rubygems

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