Allow commands to be deprecated
-------------------------------
Key: FORGE-2285
URL:
https://issues.jboss.org/browse/FORGE-2285
Project: Forge
Issue Type: Feature Request
Components: Brainstorming, UI - API
Affects Versions: 2.15.1.Final
Reporter: George Gastaldi
Assignee: George Gastaldi
Labels: new_and_noteworthy
Fix For: 2.x Future
Right now there are situations where we want to rename a command but we don't want to
break scripts, same goes for the option names.
There should be a way to preserve the behavior, but in a deprecated way. Eg: suppose we
rename {{java-new-method}} to {{java-add-method}}:
Scripts that still use {{java-new-method}} should display a warning saying that the
command is deprecated and now you should use {{java-add-method}}