Skip to content

Commit c3e1b0e

Browse files
authored
fix(ai): pass all args as prompt (#26)
1 parent 450108a commit c3e1b0e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

snippets/ai/src/ai.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ module.exports = async (globalThis: CliContext) => {
142142
this.ai.respond(`Switched to ${chalk.blue(model)} model`);
143143
}
144144

145-
async askOrHelp(prompt?: string) {
145+
async askOrHelp(...args: string[]) {
146+
const prompt = args.join(' ');
146147
if (prompt) {
147148
await this.ask(prompt);
148149
} else {

0 commit comments

Comments
 (0)