PIPE: Add pipe support for passing data into and out of terminal commands (#2395)

This commit is contained in:
Michael Ficocelli
2026-02-22 12:18:23 -07:00
committed by GitHub
parent 4a22e16058
commit 92b8b58588
68 changed files with 2430 additions and 480 deletions
+1 -1
View File
@@ -468,7 +468,7 @@ export function NetscriptSingularity(): InternalAPI<ISingularity> {
helpers.checkSingularityAccess(ctx);
const filename = helpers.string(ctx, "filename", _filename);
const server = Player.getCurrentServer();
cat([filename], server);
cat([filename], server, ctx.workerScript.scriptRef.terminalStdOut);
},
connect: (ctx) => (_host?) => {
helpers.checkSingularityAccess(ctx);