test
This commit is contained in:
20
src/commands.ts
Normal file
20
src/commands.ts
Normal 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,
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user