static void Main(string[] args) { IWorker worker = new ConsoleWorker(); try { var app = new Application(); app.Execute(args, worker); worker.WriteLine("Command successfully executed."); } catch (Exception e) { worker.WriteLine(e.Message); } }