2019-01-07 16:48:27 +01:00
|
|
|
const { app } = require('electron')
|
|
|
|
|
2020-02-03 16:43:22 -06:00
|
|
|
app.whenReady().then(() => {
|
2019-01-07 16:48:27 +01:00
|
|
|
const payload = {
|
|
|
|
hasSwitch: app.commandLine.hasSwitch('foobar'),
|
|
|
|
getSwitchValue: app.commandLine.getSwitchValue('foobar')
|
|
|
|
}
|
|
|
|
|
|
|
|
process.stdout.write(JSON.stringify(payload))
|
|
|
|
process.stdout.end()
|
|
|
|
|
2019-12-13 18:57:02 +09:00
|
|
|
app.quit()
|
2019-01-07 16:48:27 +01:00
|
|
|
})
|