Sha256: 5ec944d8134d7b6506909927728b3b0d89a11511cdf57668e4506bf03c10a368

Contents?: true

Size: 394 Bytes

Versions: 1

Compression:

Stored size: 394 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add Yard gem."

        on "--[no-]yard"

        default { Container[:configuration].build_yard }

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