Sha256: fe0682ccdd043c96f7378bf704bf84b305acc172e82448d0ce599a80bc06aba3

Contents?: true

Size: 497 Bytes

Versions: 2

Compression:

Stored size: 497 Bytes

Contents

# frozen_string_literal: true

require "refinements/structs"
require "sod"

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

        using ::Refinements::Structs

        description "Add license documentation."

        on "--[no-]license"

        default { Container[:configuration].build_license }

        def call(value = default) = input.merge!(build_license: value)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubysmith-5.1.0 lib/rubysmith/cli/actions/license.rb
rubysmith-5.0.1 lib/rubysmith/cli/actions/license.rb