Sha256: e6f5387c93fa4d33042e880bba0cb05a659be46f942f5368157c2ce51e793642

Contents?: true

Size: 419 Bytes

Versions: 1

Compression:

Stored size: 419 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(boolean) = settings.build_funding = boolean
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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