Sha256: 6d1117cc62bb5c965e38784dc43728edf49f91c79ea21288f061a98e04f53339

Contents?: true

Size: 410 Bytes

Versions: 7

Compression:

Stored size: 410 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."

        on "--[no-]funding"

        default { Container[:settings].build_funding }

        def call(boolean) = settings.build_funding = boolean
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rubysmith-7.9.0 lib/rubysmith/cli/actions/funding.rb
rubysmith-7.8.0 lib/rubysmith/cli/actions/funding.rb
rubysmith-7.7.0 lib/rubysmith/cli/actions/funding.rb
rubysmith-7.6.0 lib/rubysmith/cli/actions/funding.rb
rubysmith-7.5.0 lib/rubysmith/cli/actions/funding.rb
rubysmith-7.4.0 lib/rubysmith/cli/actions/funding.rb
rubysmith-7.3.0 lib/rubysmith/cli/actions/funding.rb