some dog-tier work i dont remember (too sleepy)

This commit is contained in:
2026-08-19 03:15:51 +02:00
parent c39bbae091
commit dfa393b4d9
4 changed files with 56 additions and 3 deletions
+7 -1
View File
@@ -1,8 +1,14 @@
import type { CommandIO } from "./command_io";
import type { Result } from "./result";
import type { ShellState } from "./shell_state";
import type { ShellError } from "./util/errors";
type CommandFn = (state: ShellState, flags: string[], args: string[]) => CommandOutput<ShellError>;
export type CommandFn = (
io: CommandIO,
state: ShellState,
flags: string[],
args: string[],
) => CommandOutput<ShellError>;
export interface CommandDescriptor {
fn: CommandFn;