lib/packwerk/cli.rb in packwerk-2.2.2 vs lib/packwerk/cli.rb in packwerk-2.3.0

- old
+ new

@@ -53,10 +53,20 @@ when "check" output_result(parse_run(args).check) when "detect-stale-violations" output_result(parse_run(args).detect_stale_violations) when "update-deprecations" - output_result(parse_run(args).update_deprecations) + warning = <<~WARNING.squish + DEPRECATION WARNING: `update-deprecations` is deprecated in favor of + `update-todo`. + WARNING + + warn(warning) + output_result(parse_run(args).update_todo) + when "update-todo" + output_result(parse_run(args).update_todo) + when "update" + output_result(parse_run(args).update_todo) when "validate" validate(args) when nil, "help" usage else