continue-custom/core/commands/slash/comment.ts
Nate Sesti e1ed7ed0a2 ✨ config.ts
2023-12-14 12:47:01 -08:00

17 lines
420 B
TypeScript

import { SlashCommand } from "../..";
import EditSlashCommand from "./edit";
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",
})) {
yield update;
}
},
};
export default CommentSlashCommand;