MCPcopy Create free account
hub / github.com/anomalyco/opencode / command

Function command

packages/opencode/test/cli/run/footer.view.test.tsx:40–48  ·  view source on GitHub ↗
(input: { name: string; description: string; source?: "command" | "mcp" | "skill" })

Source from the content-addressed store, hash-verified

38const tuiConfig = createTuiResolvedConfig()
39
40function command(input: { name: string; description: string; source?: "command" | "mcp" | "skill" }) {
41 return {
42 name: input.name,
43 description: input.description,
44 source: input.source,
45 template: "",
46 hints: [],
47 } satisfies RunCommand
48}
49
50function model(input: {
51 id: string

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected