Files
Pokedex/src/commands.ts
2026-04-26 21:47:28 +02:00

21 lines
448 B
TypeScript

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,
},
};
}