opencode/packages/cli-rs/crates/plugin/examples/pipe/reloader/tui.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

11 lines
376 B
TypeScript

// Toasts an imported helper's value so changing just that helper tests the module cache on reload.
import { label } from "./label"
export default {
id: "example.reloader",
setup(api: any) {
const carrier = api[Symbol.for("opencode.carrier")]
carrier.command({ name: "reloader.say", title: "reloader.say" }, () => api.ui.toast.show({ message: label() }))
},
}