• Prompt the user for input.

    Parameters

    • msg: string

      Message to ask the user.

    • Optionaldef: string

      Default value in case nothing was entered.

    Returns Promise<string | null>