Skip to content

Commit

Permalink
spelling, formatting and text color format for dep functions
Browse files Browse the repository at this point in the history
Signed-off-by: jace-roell <[email protected]>
  • Loading branch information
jace-roell committed Aug 13, 2024
1 parent 2c5dc15 commit a4365ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/imperative/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All notable changes to the Imperative package will be documented in this file.

## Recent Changes

- BugFix: Modified showMsgWhenDeprecated() function to allow an empty string as a parameter when no replacement is availible for the deprecated command. When no replacement is availible an alternative message will be printed. [#2041](https://github.com/zowe/zowe-cli/issues/2041)
- BugFix: Modified `showMsgWhenDeprecated` function to allow an empty string as a parameter when no replacement is available for the deprecated command. When no replacement is available an alternative message will be printed. [#2041](https://github.com/zowe/zowe-cli/issues/2041)

## `5.26.3`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export class DefaultHelpGenerator extends AbstractHelpGenerator {
let summaryText: string = "";
summaryText += command.summary || command.description;

if (command.deprecatedReplacement) {
if (command.deprecatedReplacement != null) {
// Mark with the deprecated tag
summaryText += this.grey(" (deprecated)");
} else if (command.experimental) {
Expand Down
2 changes: 1 addition & 1 deletion packages/imperative/src/utilities/src/CliUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ export class CliUtils {
* @memberof CliUtils
*/
public static showMsgWhenDeprecated(handlerParms: IHandlerParameters) {
let oldCmd: string | number;
let oldCmd: string;
if (handlerParms.definition.deprecatedReplacement || handlerParms.definition.deprecatedReplacement === "") {
// form the command that is deprecated
if(handlerParms.definition.deprecatedReplacement === "")
Expand Down

0 comments on commit a4365ce

Please sign in to comment.