Function askForConfiguration

  • This function prompts the user for configuration details regarding a new WordPress installation. It first checks if the user wants to create a new installation. If so, it asks for the name, version, and language of the site. It then initializes the configuration based on the provided details. If the user does not want a new installation, it terminates the process with an error message asking for a template file.

    Returns Promise<{
        language: string;
        name: string;
        version: string;
    }>

    Returns a promise that resolves with the result of the initialization of the configuration or ends the process if the template file does not exist.

Generated using TypeDoc