Sha256: 964b993ebfdab4c3968f8c7b17ef384bb8563a87b5f1d13bd9cb29fbcec42dd5

Contents?: true

Size: 422 Bytes

Versions: 1

Compression:

Stored size: 422 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add license documentation."

        on "--[no-]license"

        default { Container[:configuration].build_license }

        def call(value = default) = input.build_license = 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/license.rb