lib/eco/cli/config.rb in eco-helpers-1.5.1 vs lib/eco/cli/config.rb in eco-helpers-1.5.2
- old
+ new
@@ -47,16 +47,23 @@
@people_load.call(*io.params)
end
end
def people_filters
- @people_filters ||= Eco::CLI::Config::PeopleFilters.new(core_config: self)
+ @people_filters ||= Eco::CLI::Config::Filters::PeopleFilters.new(core_config: self)
@people_filters.tap do |filters|
yield(filters) if block_given?
end
end
+ def input_filters
+ @input_filters ||= Eco::CLI::Config::Filters::InputFilters.new(core_config: self)
+ @input_filters.tap do |filters|
+ yield(filters) if block_given?
+ end
+ end
+
def usecases
@usecases ||= Eco::CLI::Config::UseCases.new(core_config: self)
@usecases.tap do |cases|
yield(cases) if block_given?
end
@@ -64,9 +71,10 @@
end
end
end
+require_relative 'config/help'
require_relative 'config/options_set'
require_relative 'config/input'
-require_relative 'config/people_filters'
+require_relative 'config/filters'
require_relative 'config/use_cases'