lib/eco/cli/config/default/usecases.rb in eco-helpers-2.1.12 vs lib/eco/cli/config/default/usecases.rb in eco-helpers-2.2.1

- old
+ new

@@ -96,9 +96,15 @@ end desc = "Creates a CSV with the paths to each tag" cases.add("-create-tag-paths", :other, desc, case_name: "create-tag-paths") + desc = "Creates a JSON file with the tagtree from a CSV file" + cases.add("-csv-to-tree", :other, desc, case_name: "csv-to-tree") do |session, options, usecase| + file = SCR.get_file("-csv-to-tree", required: true, should_exist: true) + options.deep_merge!(source: {file: file}) + end + desc = "Cleans from filter_tags those tags that are not present in the tagtree (as per tagtree.json file)." desc += " It will preserve standard register tags of most common registers (i.e. EVENT, RISK)." cases.add("-clean-unknown-tags", :transform, desc, case_name: "clean-unknown-tags") .add_option("-include-register-tags", "Will also try to remove register tags") do |options| options.deep_merge!(usecase: {include_register_tags: true})