Skip to content

Commit 4883a15

Browse files
committed
chore: pass all args as prompt
1 parent 450108a commit 4883a15

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)