16 lines
396 B
TypeScript
16 lines
396 B
TypeScript
import { Item } from '../fs/Item'
|
|
import type { SimpleStream } from '../utils/SimpleStream'
|
|
import { Program } from './Program'
|
|
|
|
export class Printf extends Program {
|
|
constructor() {
|
|
super()
|
|
}
|
|
|
|
async Exec(_: SimpleStream<string>, stdout: SimpleStream<string>, __: Item, args: string[]): Promise<number> {
|
|
stdout.emit(args.slice(1).join(' '))
|
|
|
|
return 0
|
|
}
|
|
}
|