Prompts the user to set options for different text processing engines.
This function dynamically generates prompts based on the selected engine.
It supports 'translate', 'split', 'findMatch', and 'replace' engines, each with its own set of required options.
The name of the text processing engine. It can be 'translate', 'split', 'findMatch', or 'replace'.
Returns Promise<any>
A Promise that resolves to the options object or string based on the selected engine.
Example
// For 'translate' engine consttranslateOptions = awaitSetOptionsPrompt('translate'); // Prompts for language selection // For 'split' engine constsplitOptions = awaitSetOptionsPrompt('split'); // Prompts for chunk size
Prompts the user to set options for different text processing engines.
This function dynamically generates prompts based on the selected
engine
. It supports 'translate', 'split', 'findMatch', and 'replace' engines, each with its own set of required options.