MCPcopy
hub / github.com/CodeboxIDE/codebox / getShell

Function getShell

core/cb.shells.stream/main.js:15–20  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

13 var shells_rpc = imports.shells_rpc;
14
15 var getShell = function(data) {
16 if(shells.shells[data.shellId]) {
17 return Q(shells.attach(data.shellId));
18 }
19 return shells.createShell(data.shellId, data.opts)
20 };
21
22 events.on('shell.spawn', function(data) {
23 return shells.shells[data.shellId].ps.pause();

Callers 1

setupFunction · 0.85

Calls 1

QFunction · 0.85

Tested by

no test coverage detected