This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deprecation notices, deprecation warning on install
Signed-off-by: Andrew W. Harn <[email protected]>
- Loading branch information
Showing
5 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* This program and the accompanying materials are made available under the terms of the * | ||
* Eclipse Public License v2.0 which accompanies this distribution, and is available at * | ||
* https://www.eclipse.org/legal/epl-v20.html * | ||
* * | ||
* SPDX-License-Identifier: EPL-2.0 * | ||
* * | ||
* Copyright Contributors to the Zowe Project. * | ||
* * | ||
*/ | ||
|
||
import { AbstractPluginLifeCycle, Logger } from "@zowe/imperative"; | ||
|
||
class PluginLifeCycle extends AbstractPluginLifeCycle { | ||
public postInstall(): void | Promise<void> { | ||
const deprecationMessage = "The IBM® IMS™ Plug-in for Zowe CLI is deprecated, " + | ||
"and will not receive additional security updates, bug fixes, or enhancements."; | ||
const consoleLogger = Logger.getConsoleLogger(); | ||
const appLogger = Logger.getAppLogger(); | ||
consoleLogger.warn(deprecationMessage); | ||
appLogger.warn(deprecationMessage); | ||
} | ||
|
||
public preUninstall(): void | Promise<void> { | ||
return; | ||
} | ||
} | ||
|
||
export = PluginLifeCycle; |