This commit is contained in:
2026-04-26 21:47:28 +02:00
parent db373625f5
commit acabd97d01
142 changed files with 1761 additions and 2022 deletions

20
src/commands.ts Normal file
View File

@@ -0,0 +1,20 @@
import { commandHelp } from "./command_help.js";
import { commandExit } from "./command_exit.js";
import type { CLICommand } from "./state.js";
export function getCommands(): Record<string, CLICommand> {
return {
exit: {
name: "exit",
description: 'Exits the pokedex',
callback: commandExit,
},
help: {
name: "help",
description: 'Help command for pokedex',
callback: commandHelp,
},
};
}