From 2fce2d914a3a581e3ff5b5d8fcab5aeacf986ff6 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sun, 28 Sep 2025 16:32:24 -0700 Subject: [PATCH] run multiple commands --- app/src/js/shell.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/js/shell.ts b/app/src/js/shell.ts index ceda0ff..4672b7c 100644 --- a/app/src/js/shell.ts +++ b/app/src/js/shell.ts @@ -12,6 +12,11 @@ import { handleGameStart } from "./game.js" export function runCommand(input: string) { if (!input.trim()) return + if (input.includes(";")) { + input.split(";").forEach(cmd => runCommand(cmd.trim())) + return + } + const id = randomId() addToHistory(input)