sync: sync wip stuff

This commit is contained in:
2026-05-12 10:38:30 +02:00
parent dc706d6262
commit 97b9994594
21 changed files with 532 additions and 100 deletions

View File

@@ -1,3 +1,4 @@
import type { Item } from '../fs/Item'
import type { Wush } from '../shell/Wush'
import type { SimpleStream } from '../utils/SimpleStream'
import { Program } from './Program'
@@ -10,7 +11,7 @@ export class Lsprg extends Program {
this.wush = wush
}
async Exec(_: SimpleStream<string>, stdout: SimpleStream<string>, __: string[]): Promise<number> {
async Exec(_: SimpleStream<string>, stdout: SimpleStream<string>, __: Item, ___: string[]): Promise<number> {
for (const program in this.wush.GetPrograms())
stdout.emit(`${program}\n`)