Deprecation of Commands Requires Replacement Command #2041
Labels
bug
Something isn't working
good first issue
Good for newcomers
priority-medium
Not functioning - next quarter if capacity permits
severity-low
Bug that makes the usage of the Zowe less convenient but doesn't impact key use cases
Describe the bug
If a command is deprecated, the functionality in Imperative only handles if a command was deprecated with a suggested replacement. With the deprecation of IMS, there is no replacement for any of these commands. The function should be able to take in an empty string for the recommended replacement, and if the string is empty, it should not display the recommended replacement message.
zowe-cli/packages/imperative/src/utilities/src/CliUtils.ts
Lines 379 to 395 in 5667624
Additional context
This could also be considered an enhancement, but with V2 entering maintenance soon, I believe this should qualify as a bug fix. This will allow extenders to add this message to any deprecated plug-ins / commands that may go away in the future, and potentially begin to warn consumers in V2. There is currently no way to warn consumers of a deprecated command without a replacement, aside from displaying the line
Recommended replacement: none
.The text was updated successfully, but these errors were encountered: