2019-01-07 15:48:27 +00:00
|
|
|
const { app } = require('electron')
|
|
|
|
|
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')
|
|
|
|
}
|
|
|
|
|
|
|
|
process.stdout.write(JSON.stringify(payload))
|
|
|
|
process.stdout.end()
|
|
|
|
|
2019-12-13 09:57:02 +00:00
|
|
|
app.quit()
|
2019-01-07 15:48:27 +00:00
|
|
|
})
|