Sha256: 9b80bde5267bedb1f16d148a9c292b146fd61b406757440af61a20560eb46a48

Contents?: true

Size: 444 Bytes

Versions: 2

Compression:

Stored size: 444 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add Amazing Print gem."

        on "--[no-]amazing_print"

        default { Container[:settings].build_amazing_print }

        def call(value = nil) = settings.build_amazing_print = value
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubysmith-7.1.0 lib/rubysmith/cli/actions/amazing_print.rb
rubysmith-7.0.0 lib/rubysmith/cli/actions/amazing_print.rb