Sha256: 4b36077a0ed0272e7c99b39588f0003f6681c130bee5880b4f737255fc326809

Contents?: true

Size: 526 Bytes

Versions: 1

Compression:

Stored size: 526 Bytes

Contents

# frozen_string_literal: true

require "refinements/structs"
require "sod"

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

        using Refinements::Structs

        description "Set file patterns."

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

        default { Container[:configuration].patterns }

        def call(patterns = default) = input.merge! patterns: Array(patterns)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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