- initial changes to data shapes
- ls command needs fixing
This commit is contained in:
+1
-6
@@ -3,12 +3,7 @@ import type { Result } from "./result";
|
||||
import type { ShellState } from "./shell_state";
|
||||
import type { ShellError } from "./util/errors";
|
||||
|
||||
export type CommandFn = (
|
||||
io: CommandIO,
|
||||
state: ShellState,
|
||||
flags: string[],
|
||||
args: string[],
|
||||
) => Promise<CommandOutput<ShellError>>;
|
||||
export type CommandFn = (io: CommandIO, state: ShellState, args: string[]) => Promise<CommandOutput<ShellError>>;
|
||||
|
||||
export interface CommandDescriptor {
|
||||
fn: CommandFn;
|
||||
|
||||
Reference in New Issue
Block a user