Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions LethalAPI.Terminal/Interactions/TerminalInteraction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@ public TerminalInteraction(Action<TerminalNode> promptBuilder, Delegate handler)

Handlers.Add(handler);
}

/// <summary>
/// Creates an interaction with the specified prompt
/// </summary>
/// <param name="prompt">Prompt to display to the user</param>
public TerminalInteraction(string prompt)
{
WithPrompt(prompt);
}

/// <summary>
/// Adds a number of services to the container used to invoke the handlers.
Expand Down