PromptAliases.

Prompt(ICakeContext, string, string, TimeSpan) 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, TimeSpan timeout)

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.
timeout TimeSpan Timeout time, defaults to 30 seconds.

Return Value

Type Description
string The user input.