output handles that

This commit is contained in:
Chris Wanstrath 2025-09-26 21:14:44 -07:00
parent 97a6b952d5
commit d6638263a7

View File

@ -16,7 +16,7 @@ export function runCommand(input: string) {
addToHistory(input)
addInput(id, input)
const [cmd = "", ...args] = input.split(" ")
const [cmd = "", ..._args] = input.split(" ")
if (browserCommands[cmd]) {
const result = browserCommands[cmd]()
@ -76,12 +76,5 @@ function handleStreamReplace(msg: Message) {
replaceOutput(msg.id!, msg.data as CommandOutput)
}
function handleStreamEnd(msg: Message) {
const id = msg.id!
const status = document.querySelector(`[data-id="${id}"].input .status`)
if (!status) return
status.classList.remove("purple")
status.classList.remove("green")
function handleStreamEnd(_msg: Message) {
}