Closed akshaygpt closed 4 years ago
The way renderer
and main
communicate has been fixed.
ipcRenderer.send()
to ipcMain.on()
using a string
ipcMain.on()
to exec
using an object
Received back to ipcRenderer.on()
from event.sender.send
as json
Sample data passed to CloudmeshWrapper.exec()
:
args = {
cmsCommand: ['vm', 'list', '--output=json'],
onStdout: (data) => {},
onStderr: (err) => {}
}
Sources:
Able to get the json
data from cms vm list --output=json
back to the UI and outputting it on the console.
Next steps:
Receiving
Error: spawn cms ENOENT
error on thenode
shell that opens up when theexecute
button is pressed with/without a command.