Skip to content

Commit acc9fcb

Browse files
committed
added
1 parent f645b98 commit acc9fcb

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

actions/createagent.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,16 @@ async function getBasicAnswers(projectName, quickEnabled, parsedYaml){
311311
answers = await inquirer.prompt(prompts);
312312
}
313313
else {
314-
314+
answers.projectName = projectName;
315+
answers.unique_id = projectName.replace(/[^a-zA-Z0-9]/g, '')
316+
answers.installPath = path.join(currentPath, projectName)
317+
answers.template = 'basic'
318+
answers.agentDescription = 'My Codebolt Agent'
319+
answers.tags = ""
320+
answers.worksonblankcode = true
321+
answers.worksonexistingcode = true
322+
answers.supportedlanguages = []
323+
answers.supportedframeworks = []
315324
}
316325

317326

@@ -321,7 +330,6 @@ async function getBasicAnswers(projectName, quickEnabled, parsedYaml){
321330
}
322331

323332
const createagent = async (options) => {
324-
console.log(options)
325333
console.log(chalk.blue(
326334
" _____ _ _ _ _ \n"+
327335
" / __ \\ | | | | | | | \n"+

0 commit comments

Comments
 (0)