mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-27 07:38:51 +00:00
Add packages/cli-rs, an OpenCode client written in Rust on OpenTUI's Rust crates. It is a client only.
11 lines
376 B
TypeScript
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() }))
|
|
},
|
|
}
|