some dog-tier work i dont remember (too sleepy)
This commit is contained in:
+7
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user