private void TryToRun(VersionControl command, CommandSet commandSet) { Console.WriteLine("Would you like to get source-code right now?(Y/N)"); var readLine = Console.ReadLine(); if (readLine != null) { var cmd = readLine.ToLower(); if (cmd == "y") { command.Invoke(new ExceuteResult("./"), commandSet); } } Console.WriteLine("Done!"); }