mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-25 15:24:58 +00:00
17 lines
451 B
TypeScript
17 lines
451 B
TypeScript
import { EOL } from "os"
|
|
import { Skill } from "../../../skill"
|
|
import { bootstrap } from "../../bootstrap"
|
|
import { cmd } from "../cmd"
|
|
|
|
export const SkillCommand = cmd({
|
|
command: "skill",
|
|
describe: "list all available skills",
|
|
builder: (yargs) => yargs,
|
|
async handler() {
|
|
await bootstrap(process.cwd(), async () => {
|
|
const skills = await Skill.all()
|
|
process.stdout.write(JSON.stringify(skills, null, 2) + EOL)
|
|
})
|
|
},
|
|
})
|