2015-07-20 00:09:47 -07:00
|
|
|
#!/usr/bin/env node
|
|
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
|
2016-04-19 16:47:21 -07:00
|
|
|
var sendCrashNotification = require('./src/crashnotifier').sendCrashNotification;
|
2015-09-07 11:18:44 -07:00
|
|
|
|
|
|
|
|
function main() {
|
|
|
|
|
if (process.argv.length !== 3) return console.error('Usage: crashnotifier.js <processName>');
|
|
|
|
|
|
2015-09-07 21:10:00 -07:00
|
|
|
var processName = process.argv[2];
|
|
|
|
|
console.log('Started crash notifier for', processName);
|
|
|
|
|
|
2015-11-10 00:24:40 -08:00
|
|
|
sendCrashNotification(processName);
|
2015-09-07 11:18:44 -07:00
|
|
|
}
|
2015-07-20 00:09:47 -07:00
|
|
|
|
2015-09-07 11:18:44 -07:00
|
|
|
main();
|