private void PrintStrykerASCIILogo() { Console.WriteLine(""); Chalk.Yellow(" |STRYKER| "); Console.WriteLine(""); Chalk.Yellow(" ~control the mutants~ "); Console.WriteLine(""); Chalk.Blue(" ..####"); Console.Write("@"); Chalk.Blue("####.. "); Console.WriteLine(""); Chalk.Blue(" .########"); Console.Write("@"); Chalk.Blue("########. "); Console.WriteLine(""); Chalk.Blue(" .#####################. "); Console.WriteLine(""); Chalk.Blue(" #########"); Chalk.Yellow("#######"); Chalk.Blue("######### "); Console.WriteLine(""); Chalk.Blue(" #########"); Chalk.Yellow("##"); Chalk.Blue("#####"); Chalk.Yellow("##"); Chalk.Blue("######### "); Console.WriteLine(""); Chalk.Blue(" #########"); Chalk.Yellow("##"); Chalk.Blue("################ "); Console.WriteLine(""); Chalk.Blue(" "); Console.Write("@@@"); Chalk.Blue("#######"); Chalk.Yellow("#######"); Chalk.Blue("#######"); Console.Write("@@@"); Chalk.Blue(" "); Console.WriteLine(""); Chalk.Blue(" ################"); Chalk.Yellow("##"); Chalk.Blue("######### "); Console.WriteLine(""); Chalk.Blue(" #########"); Chalk.Yellow("##"); Chalk.Blue("#####"); Chalk.Yellow("##"); Chalk.Blue("######### "); Console.WriteLine(""); Chalk.Blue(" #########"); Chalk.Yellow("#######"); Chalk.Blue("######### "); Console.WriteLine(""); Chalk.Blue(" '######################' "); Console.WriteLine(""); Chalk.Blue(" '########"); Console.Write("@"); Chalk.Blue("#########' "); Console.WriteLine(""); Chalk.Blue(" '####"); Console.Write("@"); Chalk.Blue("####' "); Console.WriteLine(""); }
static int Main(string[] args) { try { var stryker = new StrykerRunner(); var app = new StrykerCLI(stryker); return(app.Run(args)); } catch (StrykerInputException strEx) { Chalk.Yellow("Stryker.NET failed to mutate your project. For more information see the logs below:"); Console.WriteLine(strEx.ToString()); return(1); } catch (Exception) { return(1); } }
private async Task PrintStrykerVersionInformationAsync() { var chalk = new Chalk(); var assembly = Assembly.GetExecutingAssembly(); var assemblyVersion = assembly.GetName().Version; var currentVersion = SemanticVersion.Parse($"{assemblyVersion.Major}.{assemblyVersion.Minor}.{assemblyVersion.Build}"); Console.Write(" Version: "); chalk.Green($"{currentVersion}"); Console.WriteLine(" (beta)"); Console.WriteLine(); var nugetInfo = await StrykerNugetFeedInfo.Create(); var latestVersion = nugetInfo?.LatestVersion; if (latestVersion != null && latestVersion != currentVersion) { chalk.Yellow($@" A new version of Stryker.NET ({latestVersion}) is available. Please consider upgrading using `dotnet tool update -g dotnet-stryker` {Environment.NewLine}"); Console.WriteLine(); } }