zowe / zowe-cli

Zowe CLI
Eclipse Public License 2.0
114 stars 87 forks source link

Events: Add `onPluginsInstalled` event to the list of `ZoweSharedEvents` #2202

Open zFernand0 opened 2 months ago

zFernand0 commented 2 months ago

Note: Could be implemented with an onSchemaUpdate type of event on the global layer.

Motivation

Now that the event operator and processor have been created, it would be cool to emit a new event during the post-install script for plug-ins that indicates a new plug-in was installed, notifying other inquiring processes/applications of this change.

Also within this script, we can incorporate a check for daemon mode (since the plug-in will be installed in the same process and we don't need to communicate to another process), and call for an automatic restart of the daemon if user is in daemon-mode that way the user won't have to remember (and possibly need to troubleshoot) to restart their daemon everytime they install a new plug-in.

Originally posted by @ATorrise in https://github.com/zowe/zowe-cli/issues/1348#issuecomment-2223855396

github-actions[bot] commented 2 months ago

Thank you for raising this enhancement request. The community has 90 days to vote on it. If the enhancement receives at least 5 upvotes, it is added to our development backlog. If it receives fewer votes, the issue is closed.

JTonda commented 2 months ago

Consider additional events like onPluginsChanged.