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
+3 -2
View File
@@ -1,6 +1,7 @@
import type { CompletedProgramName } from "@enums";
import { ProgramFilePath, asProgramFilePath } from "../Paths/ProgramFilePath";
import { BaseServer } from "../Server/BaseServer";
import type { StdIO } from "../Terminal/StdIO/StdIO";
export interface IProgramCreate {
level: number;
@@ -11,14 +12,14 @@ export interface IProgramCreate {
interface ProgramConstructorParams {
name: CompletedProgramName;
create: IProgramCreate | null;
run: (args: string[], server: BaseServer) => void;
run: (args: string[], server: BaseServer, stdIO: StdIO) => void;
nsMethod?: string;
}
export class Program {
name: ProgramFilePath & CompletedProgramName;
create: IProgramCreate | null;
run: (args: string[], server: BaseServer) => void;
run: (args: string[], server: BaseServer, stdIO: StdIO) => void;
nsMethod?: string;
constructor({ name, create, run, nsMethod }: ProgramConstructorParams) {