lib/tocer/cli/actions/pattern.rb in tocer-17.5.0 vs lib/tocer/cli/actions/pattern.rb in tocer-18.0.0

- old
+ new

@@ -5,18 +5,18 @@ module Tocer module CLI module Actions # Stores table of contents file patterns. class Pattern < Sod::Action - include Import[:input] + include Import[:settings] description "Set file patterns." on %w[-p --patterns], argument: "[a,b,c]" - default { Container[:configuration].patterns } + default { Container[:settings].patterns } - def call(patterns = nil) = input.patterns = Array(patterns || default) + def call(patterns = nil) = settings.patterns = Array(patterns || default) end end end end