open-ux-tools
open-ux-tools copied to clipboard
TBI - Consolidation of prompt helpers
Description (include screenshots)
Currently there are helper functions for the prompts in @sap-ux/ui5-application-inquirer
. For example https://github.com/SAP/open-ux-tools/blob/ca69da5a945cb076a59293eb79d3c88860c0846e/packages/ui5-application-inquirer/src/prompts/prompt-helpers.ts#L188
The ask is to move these prompts to the inquirer common module and make the types generic to be reusable across all the future inquirer/prompting modules
Value
This will reduce code duplication
Architecture Elaboration
Functions to be moved :
-
hidePrompts
-
extendWithOptions
and all sub functions -
withCondition
Notes
Tasks
- [ ] Task 1
FYI @IainSAP @devinea @longieirl