DeepCodeGeniusWeb-vscode/src/exampleCommand1.ts
2023-05-03 19:27:06 +08:00

11 lines
307 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import {Command} from './commandManager';
export const exampleCommand1: Command = {
name: 'exampleCommand1',
pattern: 'example: command1 {{prompt}}',
description: '这是一个示例命令1',
handler: (userInput: string) => {
return `示例命令1处理了以下文本${userInput}`;
},
};