mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-02 01:50:46 +00:00
14 lines
302 B
TypeScript
14 lines
302 B
TypeScript
import { Plugin } from "@opencode/plugin"
|
|
|
|
export default Plugin.define({
|
|
id: "greeting",
|
|
async setup(ctx) {
|
|
await ctx.command.transform((editor) =>
|
|
editor.add({
|
|
name: "greet",
|
|
description: ctx.options.description,
|
|
execute: async () => {},
|
|
}),
|
|
)
|
|
},
|
|
})
|