2020-03-20 20:28:31 +00:00
|
|
|
const { app } = require('electron');
|
2019-01-07 15:48:27 +00:00
|
|
|
|
2020-02-03 22:43:22 +00:00
|
|
|
app.whenReady().then(() => {
|
2019-01-07 15:48:27 +00:00
|
|
|
const payload = {
|
|
|
|
hasSwitch: app.commandLine.hasSwitch('foobar'),
|
|
|
|
getSwitchValue: app.commandLine.getSwitchValue('foobar')
|
2020-03-20 20:28:31 +00:00
|
|
|
};
|
2019-01-07 15:48:27 +00:00
|
|
|
|
2020-03-20 20:28:31 +00:00
|
|
|
process.stdout.write(JSON.stringify(payload));
|
|
|
|
process.stdout.end();
|
2019-01-07 15:48:27 +00:00
|
|
|
|
2020-03-20 20:28:31 +00:00
|
|
|
app.quit();
|
|
|
|
});
|