cloudmesh / cloudmesh-javascript

Apache License 2.0
0 stars 1 forks source link

Getting `cms vm list --output=json` command to work on Windows #5

Closed akshaygpt closed 4 years ago

akshaygpt commented 4 years ago

Receiving Error: spawn cms ENOENT error on the node shell that opens up when the execute button is pressed with/without a command.

akshaygpt commented 4 years ago

Findings: The spawn command from node's child-process is a bit buggy on Windows, apparently cross-spawn works better. So trying that out.

Using a virtual environment with cross-spawn did resolve the issue on Windows, so continuing with that.

Sources: 1 2

akshaygpt commented 4 years ago

The way renderer and main communicate has been fixed.

akshaygpt commented 4 years ago

Able to get the json data from cms vm list --output=json back to the UI and outputting it on the console. Next steps: