Sha256: 01ff2af15f1a4e888f5d38dd16e4604fa1d70e136e46dbc1eb1642133199cc8f

Contents?: true

Size: 461 Bytes

Versions: 1

Compression:

Stored size: 461 Bytes

Contents

# frozen_string_literal: true

require "sod"

module Tocer
  module CLI
    module Actions
      # Stores table of contents file patterns.
      class Pattern < Sod::Action
        include Dependencies[:settings]

        description "Set file patterns."

        on %w[-p --patterns], argument: "[a,b,c]"

        default { Container[:settings].patterns }

        def call(patterns = default) = settings.patterns = Array(patterns)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tocer-19.0.0 lib/tocer/cli/actions/pattern.rb