Commit to Deno project.

This commit is contained in:
2021-04-28 16:55:22 -07:00
parent 2b1f9ffba1
commit c1935e58be
12 changed files with 104 additions and 43 deletions

5
parseCommand.ts Normal file
View File

@ -0,0 +1,5 @@
export default function parseCommand(command: string) {
const [action, target] = command.toLocaleLowerCase().split(" ");
return { action, target };
}