lib/eco/cli/config/default/workflow.rb in eco-helpers-1.0.8 vs lib/eco/cli/config/default/workflow.rb in eco-helpers-1.0.9

- old
+ new

@@ -1,11 +1,24 @@ ASSETS.cli.config do |config| ASSETS.config.workflow do |wf| - wf.on(:load) do |wf_load, io| - io = io.new(input: config.input.get(io: io)) - io = io.new(people: config.people(io: io)) - io = io.new(people: config.people_filters.process(io: io)) + io = nil + wf.on(:options) do |wf_options, io| + io = io.new(options: config.options_set.process(io: io)) + end + + wf.for(:load) do |wf_load| + wf_load.on(:input) do |wf_input, io| + io = io.new(input: config.input.get(io: io)) + end + + wf_load.on(:people) do |wf_people, io| + io = io.new(people: config.people(io: io)) + end + + wf_load.on(:filter) do |wf_filter, io| + io = io.new(people: config.people_filters.process(io: io)) + end end wf.before(:usecases) do |wf_cases, io| # save partial entries -> should be native to session.workflow partial_update = io.options.dig(:people, :get, :type) == :partial