Inquirer strives to be an easily embeddable and beautiful command line interface for Node.js
You can access these tools on the @weex-cli/core
, via const { inquirer } = require('@weex-cli/core')
.
This is powered by Inquirer.js.
It should ease the process of:
This is an async function.
Launch the prompt interface (inquiry session)
Register prompt plugins under name.
Create a self contained inquirer module. If you don't want to affect other libraries that also rely on inquirer when you overwrite or add new prompt types.
let prompt = context.inquirer.createPromptModule(); prompt(questions).then(/* ... */);
More detail you can see Inquirer.js.