Sha256: 45c4674908ffed92ab13fdaff6504108f3ddc48abc2e9953dfd8f5473e39e05e

Contents?: true

Size: 421 Bytes

Versions: 2

Compression:

Stored size: 421 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add GitHub funding settings."

        on "--[no-]funding"

        default { Container[:settings].build_funding }

        def call(value = nil) = settings.build_funding = 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/funding.rb
rubysmith-7.0.0 lib/rubysmith/cli/actions/funding.rb