PromptAliases.

Prompt(ICakeContext, string, string) Method

Summary

Prompts the user for input.
Assembly
Cake.Prompt.dll
Namespace
Cake.Common.IO
Containing Type
PromptAliases

Syntax

public static string Prompt(this ICakeContext context, string message, string defaultResult)

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
message string The message which is shown to the user.
defaultResult string Value supplied if the user simply returns with no input.

Return Value

Type Description
string The user input.