1 | const chalk = require("chalk");
|
2 | const inquirer = require("inquirer");
|
3 |
|
4 | (async function() {
|
5 | console.log(`${chalk.green("PRE INPUT")}\n`);
|
6 | inquirer
|
7 | .prompt([
|
8 | {
|
9 | type: "list",
|
10 | name: "category",
|
11 | message: "What category do you want to run?",
|
12 | choices: [1, 2, 3, 4, 5]
|
13 | }
|
14 | ])
|
15 | .then(({ category }) => {
|
16 | console.log(`${chalk.green("CHOSEN ", category)}`);
|
17 | });
|
18 | console.log(`${chalk.green("POST INPUT")}`);
|
19 | })();
|