static void Main(string[] args) { var arguments = new CommandLineArgs(args); var printTime = new PrintTimeCommand(); var timer = new TimerCommand(arguments); var commands = new ICommand[] { printTime, timer }; new Program(arguments, commands).Run(); }
public Program(CommandLineArgs arguments, TextWriter writer, params ICommand[] commands) { this.arguments = arguments; this.writer = writer; this.commands = commands; }
public Program(CommandLineArgs arguments, params ICommand[] commands) { this.arguments = arguments; this.commands = commands; }
public Program(CommandLineArgs arguments, TextWriter tx, params ICommand[] commands) { this.arguments = arguments; this.tx = tx; this.commands = commands; }
public Program(CommandLineArgs arguments, TextWriter outputStream, ICommand[] commands) { this.arguments = arguments; OutputStream = outputStream; this.commands = commands; }