@heroku-cli/notifications
Version:
display notifications in Heroku CLI commands
12 lines (11 loc) • 591 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.notify = void 0;
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;
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);
}
exports.notify = notify;
;