AThilenius / scorchforge

The private rebuild of the Scorch project
0 stars 0 forks source link

Added programatic remote shells #41

Closed AThilenius closed 8 years ago

AThilenius commented 8 years ago

Commit on the wrong branch and WAY too lazy to move it. But programatic terminal are working. Inject billet, and use

billet.spawn((shell) => {
  shell.onStdout((data) => {
    console.log(data);
  });
  shell.write('echo hello\n'); 
});

Resolves #33