Sha256: 54387a8aa1f74d254aa10a19b410a6a78b835364a8c05eb3847a3a1a66055d99

Contents?: true

Size: 423 Bytes

Versions: 8

Compression:

Stored size: 423 Bytes

Contents

# frozen_string_literal: true

require "sod"

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

        description "Add citation documentation."

        on "--[no-]citation"

        default { Container[:settings].build_citation }

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

Version data entries

8 entries across 8 versions & 1 rubygems

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