21 lines
448 B
TypeScript
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,
|
|
},
|
|
};
|
|
}
|