MCPcopy
hub / github.com/streamich/git-cz / createQuestions

Function createQuestions

lib/createQuestions.js:20–34  ·  view source on GitHub ↗
(state, cliAnswers)

Source from the content-addressed store, hash-verified

18};
19
20const createQuestions = (state, cliAnswers) => {
21 const questions = state.config.questions
22 .filter((name) => cliAnswers[name] === undefined)
23 .map((name) => {
24 const question = creators[name].createQuestion(state);
25
26 if (state.config.messages && state.config.messages[name]) {
27 question.message = state.config.messages[name];
28 }
29
30 return question;
31 });
32
33 return questions.filter(Boolean);
34};
35
36module.exports = createQuestions;

Callers 1

runInteractiveQuestionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…