Process class implemented, not tested, all green for now, need to reevaluate the test-suite and write tests for new code and changed one

This commit is contained in:
2026-08-19 09:51:33 +02:00
parent dfa393b4d9
commit 075c999435
5 changed files with 193 additions and 27 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ export type CommandFn = (
state: ShellState,
flags: string[],
args: string[],
) => CommandOutput<ShellError>;
) => Promise<CommandOutput<ShellError>>;
export interface CommandDescriptor {
fn: CommandFn;
+1 -1
View File
@@ -18,7 +18,7 @@ export function createShellError<E extends ShellError>(
let exitCode = EXIT_CODE_MAP[errorType] ?? 1;
// Special handling for signal termination
if (errorType === "SIGNAL_TERMINATION") {
if (errorType === "SignalTermination") {
const signalError = extraProps as unknown as { signalNumber: number };
exitCode = 128 + signalError.signalNumber;
}