util/prompt-suggestion

Methods

static prefillQuestions(store, questions) → {Array}

Prefill the defaults with values from the global store.

Parameters:
Name Type Description
store Store

.yo-rc-global global config

questions Array | Object

Original prompt questions

Returns:
Array -

Prompt questions array with prefilled values.

static storeAnswers(store, questions, answers, storeAll)

Store the answers in the global store.

Parameters:
Name Type Description
store Store

.yo-rc-global global config

questions Array | Object

Original prompt questions

answers Object

The inquirer answers

storeAll Boolean

Should store default values