lib/eco/cli/config/default/options.rb in eco-helpers-1.1.8 vs lib/eco/cli/config/default/options.rb in eco-helpers-1.2.1
- old
+ new
@@ -1,10 +1,21 @@
ASSETS.cli.config do |cnf|
cnf.options_set do |options_set, options|
- options_set.add(["-dry-run", "-simulate"]) do |options|
+ options_set.add("-entries-from") do |options, session|
+ options.deep_merge!(input: {entries_from: true})
+ end
+
+ options_set.add("-get-people") do |options, session|
+ options.deep_merge!(people: {
+ get: {from: :remote, type: :full}
+ })
+ end
+
+ options_set.add(["-dry-run", "-simulate"]) do |options, session|
options[:dry_run] = true
options[:simulate] = true
+ session.config.dry_run!
end
options_set.add("-skip-batch-policy") do |options|
options.deep_merge!(skip: {batch_policy: true})
end