Sha256: 0cd3a52a22d96937fb084a6e896b88c83f9b31d1640fbb091d282802a94e2c63

Contents?: true

Size: 522 Bytes

Versions: 2

Compression:

Stored size: 522 Bytes

Contents

# frozen_string_literal: true

require "refinements/structs"
require "sod"

module Rubysmith
  module CLI
    module Actions
      # Stores Amazing Print flag.
      class AmazingPrint < Sod::Action
        include Import[:input]

        using ::Refinements::Structs

        description "Add Amazing Print gem."

        on "--[no-]amazing_print"

        default { Container[:configuration].build_amazing_print }

        def call(value = default) = input.merge!(build_amazing_print: value)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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