@heroku-cli/notifications
Version:
display notifications in Heroku CLI commands
14 lines (13 loc) • 605 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.notify = notify;
const path = require("node:path");
const node_notifier_1 = require("node-notifier");
function notify(notification = {}, callback) {
if (!notification.force && ['0', 'false'].includes(process.env.HEROKU_NOTIFICATIONS))
return;
try {
return (0, node_notifier_1.notify)(Object.assign({ appName: 'Microsoft.Windows.ShellExperienceHost_cw5n1h2txyewy!App', icon: path.join(__dirname, '../assets/heroku.png'), title: 'Heroku CLI' }, notification), callback);
}
catch (_a) { }
}