Function CreateInputPrompt

  • Asynchronously creates an input prompt for the user, allowing them to input a string.

    This function utilizes the @inquirer/prompts library to display a prompt with a custom message and a default value. It returns the user's input as a string.

    Parameters

    • message: string

      The message to display in the input prompt.

    • defaultVal: string

      The default value to pre-fill in the input prompt.

    Returns Promise<string>

    A promise that resolves with the user's input.