a bit of front-end work, changing users almost done on login, "drunk-code" no more (id hope), continuous processes and keybinds still not done.
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import { isBuildCommand } from "typescript";
|
||||
import type { KeyBind } from "../terminal/keybindRegistry";
|
||||
import type { Bash, Result } from "./bash";
|
||||
import { cd } from "./commands/cd";
|
||||
import { clear } from "./commands/clear";
|
||||
import { ls } from "./commands/ls";
|
||||
import { aSync } from "./commands/testAsync";
|
||||
import { testProcess } from "./commands/testAsync";
|
||||
|
||||
export type ICommand = {
|
||||
method: (this: Bash, args: CommandArgs) => Promise<Result>;
|
||||
method: (this: Bash, args: CommandArgs) => Result;
|
||||
keybinds?: Map<KeyBind, () => any>;
|
||||
flags: string[];
|
||||
help: string;
|
||||
@@ -28,7 +29,7 @@ export const COMMANDS = {
|
||||
cd,
|
||||
ls,
|
||||
clear,
|
||||
aSync
|
||||
testProcess
|
||||
} as const satisfies Record<string, ICommand>;
|
||||
|
||||
/* //export const commands {
|
||||
|
||||
Reference in New Issue
Block a user