lib/eco/cli/config/default/usecases.rb in eco-helpers-2.0.68 vs lib/eco/cli/config/default/usecases.rb in eco-helpers-2.1.1

- old
+ new

@@ -85,9 +85,17 @@ end.add_option("-column", "Specify the input column header with the codes") do |options| col_codes = SCR.get_arg("-column", with_param: true) options.deep_merge!(other: {file: {codes_column: col_codes}}) end + desc = "Allows to perform some checks on tagtree structure (requires GraphQL)" + cases.add("-tagtree", :other, desc, case_name: "tagtree") + .add_option("-show-backend", "Displays the tagtree as per back-end") do |options| + options.deep_merge!(tagtree: {operation: {show_backend: true}}) + end.add_option("-diff", "Compares the tagtree.json file with the back-end") do |options| + options.deep_merge!(tagtree: {operation: {diff: true}}) + end + desc = "Creates a CSV with the paths to each tag" cases.add("-create-tag-paths", :other, desc, case_name: "create-tag-paths") 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)."