sync: sync wip stuff
This commit is contained in:
@@ -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`)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user