lib/eco/cli/config/default/usecases.rb in eco-helpers-2.0.15 vs lib/eco/cli/config/default/usecases.rb in eco-helpers-2.0.16
- old
+ new
@@ -5,9 +5,21 @@
cases.add("-supers-hierarchy", :export, desc, case_name: "supers-hierarchy") do |people, session, options|
file = (SCR.get_arg("-to") && SCR.get_file("-to", required: true, should_exist: false)) || "supers_hierarchy.txt"
options.deep_merge!(output: {file: file})
end
+ desc = "Draws the Cyclic Supervisors when identified (use option -to file.ext)"
+ cases.add("-identify-cyclic-supers", :export, desc, case_name: "identify-cyclic-supers") do |people, session, options|
+ file = (SCR.get_arg("-to") && SCR.get_file("-to", required: true, should_exist: false)) || "supers_hierarchy.txt"
+ options.deep_merge!(output: {file: file})
+ end
+
+ desc = "Abstracts the Abilities that each Usergroup should probably have (use option -to file.ext)"
+ cases.add("-abstract-policygroup-abilities", :export, desc, case_name: "abstract-policygroup-abilities") do |people, session, options|
+ file = (SCR.get_arg("-to") && SCR.get_file("-to", required: true, should_exist: false)) || "suggested_abilities.txt"
+ options.deep_merge!(output: {file: file})
+ end
+
desc = "It exports to a CSV the (filtered) people"
cases.add("-people-to-csv", :export, desc) do |people, session, options|
file = SCR.get_file("-people-to-csv", required: true, should_exist: false)
options.deep_merge!(export: {file: {name: file, format: :csv}})
options.deep_merge!(export: {options: {nice_header: true}}) if SCR.get_arg("-nice-header")