Sha256: 26bda1337ce17d6bc1fc098715e5cb32f320603390748630b09808ebb6dee50b

Contents?: true

Size: 428 Bytes

Versions: 1

Compression:

Stored size: 428 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add citation documentation."

        on "--[no-]citation"

        default { Container[:configuration].build_citation }

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