opencode/packages/cli-rs/crates/plugin/examples/pipe/printer/loud.ts
Simon Klee 6b1df0cceb
feat(cli-rs): add the native CLI and TUI (#63477)
Add packages/cli-rs, an OpenCode client written in Rust on OpenTUI's Rust crates. It is a client only.
2026-11-22 00:07:01 +01:00

8 lines
296 B
TypeScript

// A module of the printer's own, which prints as it loads and when called.
console.log("loud.ts loads")
process.stdout.write("loud.ts writes as it loads\n")
export function shout(when: string) {
console.log(`loud.ts shouts in ${when}`)
process.stdout.write(`loud.ts writes in ${when}\n`)
}