hedgequantx 1.8.2 → 1.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/utils/prompts.js +8 -1
package/package.json
CHANGED
package/src/utils/prompts.js
CHANGED
|
@@ -91,10 +91,17 @@ const numberInput = async (message, defaultVal = 1, min = 1, max = 1000) => {
|
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
|
-
* Select -
|
|
94
|
+
* Select - display options and text input, map to value
|
|
95
95
|
*/
|
|
96
96
|
const selectOption = async (message, options) => {
|
|
97
97
|
prepareStdin();
|
|
98
|
+
|
|
99
|
+
// Display options
|
|
100
|
+
options.forEach((opt, i) => {
|
|
101
|
+
console.log(` [${i + 1}] ${opt.label}`);
|
|
102
|
+
});
|
|
103
|
+
console.log();
|
|
104
|
+
|
|
98
105
|
const { value } = await inquirer.prompt([{
|
|
99
106
|
type: 'input',
|
|
100
107
|
name: 'value',
|