MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / run

Method run

lib/tasks/interactive-new.js:9–22  ·  view source on GitHub ↗
(newCommandOptions, _testAnswers)

Source from the content-addressed store, hash-verified

7
8class InteractiveNewTask extends Task {
9 async run(newCommandOptions, _testAnswers) {
10 const inquirer = await import('inquirer');
11
12 let prompt = inquirer.createPromptModule();
13 let questions = await this.getQuestions(newCommandOptions);
14 let answers = await prompt(questions, _testAnswers);
15
16 answers.lang = answers.langSelection || answers.langDifferent;
17
18 delete answers.langSelection;
19 delete answers.langDifferent;
20
21 return answers;
22 }
23
24 async getQuestions(newCommandOptions = {}) {
25 const { isLangCode } = require('is-language-code');

Callers

nothing calls this directly

Calls 1

getQuestionsMethod · 0.95

Tested by

no test coverage detected