run multiple commands
This commit is contained in:
parent
9dded30417
commit
2fce2d914a
|
|
@ -12,6 +12,11 @@ import { handleGameStart } from "./game.js"
|
||||||
export function runCommand(input: string) {
|
export function runCommand(input: string) {
|
||||||
if (!input.trim()) return
|
if (!input.trim()) return
|
||||||
|
|
||||||
|
if (input.includes(";")) {
|
||||||
|
input.split(";").forEach(cmd => runCommand(cmd.trim()))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
const id = randomId()
|
const id = randomId()
|
||||||
|
|
||||||
addToHistory(input)
|
addToHistory(input)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user