continue-custom/core/commands/slash/comment.ts
2024-05-12 15:18:23 -07:00

18 lines
487 B
TypeScript

import { SlashCommand } from "../../index.js";
import EditSlashCommand from "./edit.js";
const CommentSlashCommand: SlashCommand = {
name: "comment",
description: "Write comments for highlighted code",
run: async function* (sdk) {
for await (const update of EditSlashCommand.run({
...sdk,
input:
"Write comments for this code. Do not change anything about the code itself.",
})) {
yield update;
}
},
};
export default CommentSlashCommand;