Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

Commit

Permalink
Added new CommandLoop ctor soon to become the replacement for the con…
Browse files Browse the repository at this point in the history
…structor that takes an AbstractConsole
  • Loading branch information
cburgdorf committed Jul 24, 2012
1 parent d7741df commit c26d116
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/shell.me/ShellMe.CommandLine/CommandLoop.cs
Expand Up @@ -17,7 +17,7 @@ public class CommandLoop
{
private readonly ICommandFactory _commandFactory;
private readonly ILockingService _lockingService;
private InMemoryHistory _history;
private readonly InMemoryHistory _history;

public CommandLoop() : this(new LowLevelToAbstractConsoleAdapter(new LowLevelNativeConsole()))
{}
Expand All @@ -26,6 +26,11 @@ public CommandLoop(AbstractConsole console) : this(console, new CommandFactory()
{
}

public CommandLoop(ILowLevelConsole console, ICommandFactory commandFactory)
: this(new LowLevelToAbstractConsoleAdapter(console), commandFactory)
{
}

public CommandLoop(AbstractConsole console, ICommandFactory commandFactory)
{
Console = console;
Expand Down

0 comments on commit c26d116

Please sign in to comment.