Sha256: e78a9d177c3c5b3d88127bc4c597927fbfdd99f7da9e45bc31e688eb1ca45f80

Contents?: true

Size: 429 Bytes

Versions: 1

Compression:

Stored size: 429 Bytes

Contents

# frozen_string_literal: true

require "sod"

module Rubysmith
  module CLI
    module Actions
      # Stores funding flag.
      class Funding < Sod::Action
        include Import[:input]

        description "Add GitHub funding configuration."

        on "--[no-]funding"

        default { Container[:configuration].build_funding }

        def call(value = default) = input.build_funding = value
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubysmith-5.2.0 lib/rubysmith/cli/actions/funding.rb