hyper/app/menus/menus/plugins.js
CHaBou dfe5ab89fa
Prevent /usr/local/bin/hyper overwriting (#2885)
Silently fail installation at startup.
Add a menu item to manually install it with a notification feedback.
Fix plugin update menu item.

Fixes #2884
2018-04-22 22:13:23 +02:00

23 lines
445 B
JavaScript

module.exports = (commands, execCommand) => {
return {
label: 'Plugins',
submenu: [
{
label: 'Update',
accelerator: commands['plugins:update'],
click() {
execCommand('plugins:update');
}
},
{
label: 'Install Hyper CLI command in PATH',
click() {
execCommand('cli:install');
}
},
{
type: 'separator'
}
]
};
};