/// <summary> /// Punto de arranque /// </summary> /// <param name="args">usamos CommandLineParser para parsear las opciones</param> static void Main(string[] args) { var currentDitectory = AppDomain.CurrentDomain.BaseDirectory; var fontPath = Path.Combine(currentDitectory, "figlet/small"); var fontTitle = new Figlet(Colorful.FigletFont.Load(fontPath)); Parser.Default.ParseArguments <UpdateVersionArgs, Propagation>(args).MapResult( (UpdateVersionArgs s) => { Update(s); return(1); }, (Propagation s) => { Colorful.Console.WriteLine(fontTitle.ToAscii("Trifenix Connect"), Color.Red); // metadata model Colorful.Console.WriteLine(fontTitle.ToAscii("Trifenix-Versions"), Color.Purple); Colorful.Console.WriteLine($"Propagación de dependencias para {s.packageName} rama {s.branch}", Color.DarkGreen); Colorful.Console.WriteLine($"---------------------------------------------------", Color.DarkGreen); ProgragationMethod(s); return(1); }, err => 1 ); }
private static void Splash() { Console.Title = "Texnomic SecureDNS"; var Speed = new Figlet(FigletFont.Load(Resources.Speed)); Console.WriteWithGradient(Speed.ToAscii(" Texnomic").ConcreteValue.ToArray(), System.Drawing.Color.Yellow, System.Drawing.Color.Fuchsia, 14); Console.WriteWithGradient(Speed.ToAscii(" SecureDNS").ConcreteValue.ToArray(), System.Drawing.Color.Yellow, System.Drawing.Color.Fuchsia, 14); Console.WriteLine(""); }
public override void Begin(bool onlyMessage = false) { Console.Clear(); Console.WriteLine(_figlet.ToAscii("Buscador de Numeros"), ColorTranslator.FromHtml("#ffa500")); Console.WriteLine(_figlet.ToAscii("Repetidos"), ColorTranslator.FromHtml("#ffa500")); Console.WriteLine("Bem vindo ao buscador de números repetidos!", Color.PeachPuff); ReadData("Insira uma sequência de números inteiros, de -2147483647 a 2147483647, separados por vírgulas: "); if (!onlyMessage) { ProcessInput(); Execute(); ShowResult(); RetryOrExit(); } }
public static void SelectAlg() { Console.Clear(); Console.WriteLine(figlet.ToAscii("Knewin Test"), ColorTranslator.FromHtml("#8AFFEF")); Console.WriteLine("Selecione um algoritmo: "); Console.WriteLine("1 - Buscador de Números Repetidos", Color.Yellow); Console.WriteLine("2 - Verificador de Palíndromos", Color.Yellow); Console.WriteLine("0 - Sair", Color.Gray); var choice = Console.ReadKey().KeyChar; Console.WriteLine(); if (choice == '1') { searchFirstRepeatedIndex.Begin(); } if (choice == '2') { confirmPalindrome.Begin(); } if (choice != '0') { System.Console.WriteLine("Selecione um dos dois algoritmos!"); SelectAlg(); } }
private static async System.Threading.Tasks.Task Main(string[] args) { FigletFont font = FigletFont.Load(@"Fonts\big.flf"); Figlet figlet = new Figlet(font); Colorful.Console.WriteLine(figlet.ToAscii("gRPC Client"), ColorTranslator.FromHtml("#ADFF2F")); //Colorful.Console.WriteLine("Test", ColorTranslator.FromHtml("#ADFF2F")); var channel = GrpcChannel.ForAddress(@"https://localhost:5001"); var client = new Greeter.GreeterClient(channel); var cts = new CancellationTokenSource(); cts.CancelAfter(TimeSpan.FromSeconds(10)); using (var call = client.SayHello2(new HelloRequest { Name = "Mukuch" }, cancellationToken: cts.Token)) { await foreach (var msg in call.ResponseStream.ReadAllAsync()) { Colorful.Console.WriteLine(msg, ColorTranslator.FromHtml("#ADFF2F")); } } }
static void Main(string[] args) { Console.WriteLine(string.Empty); var desc = " Foreach"; var fontArr = System.Text.Encoding.Default.GetBytes(ContessaFont.CONTESSA); FigletFont font = FigletFont.Load(fontArr); Figlet figlet = new Figlet(font); Console.WriteLine(figlet.ToAscii(desc), Color.Blue); Console.WriteFormatted("Turn easy the execution of loops, for and batch command line programs using statments like ", Color.White); Console.WriteLineFormatted("foreach ", Color.Green); try { var multiplierIndex = args.ToList().IndexOf("*"); if (multiplierIndex == -1) { throw new DocoptNet.DocoptInputErrorException("You must to specify * multiplier character"); } var beforeArgs = SubArray <string>(args, 0, multiplierIndex); var afterArgs = SubArray <string>(args, multiplierIndex + 1, args.Length - multiplierIndex - 1); var arguments = new Docopt().Apply(Usage.SHORT_HELP, beforeArgs, version: "Foreach", exit: false); try { Run(afterArgs, arguments).Wait(); Environment.Exit(0); } catch (Exception ex) { Console.WriteLine(ex.ToString()); Environment.Exit(2); } } catch (Exception e) { Console.WriteLine(Usage.SHORT_HELP); Console.WriteLine(string.Empty); //Console.WriteLine($@" > To convert all wav files in currenty folder (and sub-directories recursivelly) and convert to mp3 format"); //Console.WriteLineFormatted($@" ffmpeg-batch -s /**/*.wav -o mp3", Color.Green); //Console.WriteLine(string.Empty); //Console.WriteLine($@" > To convert all wma files in c:\music and convert to mp3 format"); //Console.WriteLineFormatted($@" ffmpeg-batch -s c:\music\*.wma -o mp3", Color.Green); Console.WriteLine("Install/Uninstall tool:"); Console.WriteLine($@" > To install tool from system"); Console.WriteLineFormatted($@" dotnet tool install -g foreach", Color.Green); Console.WriteLine(string.Empty); Console.WriteLine($@" > To uninstall tool from system"); Console.WriteLineFormatted($@" dotnet tool uninstall -g foreach", Color.Green); Environment.Exit(1); } }
public static void Main(string[] args) { FigletFont font = FigletFont.Load(@"Fonts\big.flf"); Figlet figlet = new Figlet(font); Colorful.Console.WriteLine(figlet.ToAscii("gRPC Server"), ColorTranslator.FromHtml("#8AFFEF")); CreateHostBuilder(args).Build().Run(); }
private static void PrintSplashScreen() { var figlet = new Figlet(FigletFont.Load(File.OpenRead("cyberlarge.flf"))); var roslyn = figlet.ToAscii("Roslyn"); var insertion = figlet.ToAscii("Insertion"); var tool = figlet.ToAscii("Tool"); var red = 244; var green = 212; const int blue = 255; Write(roslyn, Color.FromArgb(red, green, blue)); red -= 18; green -= 36; Write(insertion, Color.FromArgb(red, green, blue)); red -= 18; green -= 36; Write(tool, Color.FromArgb(red, green, blue)); }
static void PrintHeader() { FigletFont font = FigletFont.Load("poison.flf"); Figlet figlet = new Figlet(font); Console.WriteWithGradient(figlet.ToAscii("Sale Bot").ToString(), Color.FromArgb(0, 255, 0), Color.FromArgb(0, 64, 0), 3); Console.WriteLine(); Console.ResetColor(); }
public static void ShowWelcome() { FigletFont font = FigletFont.Load("chunky.flf"); Figlet figlet = new Figlet(font); Console.WriteLine(figlet.ToAscii("BBB Downloader"), Color.LimeGreen); Console.WriteLine( "For Documentation And Source Code Please Visit https://github.com/berkayalcin/BigBlueButton-Downloader", Color.LimeGreen); }
static void AsciiText() { Console.WriteAscii("MichalBialecki.com", Color.FromArgb(131, 184, 214)); Console.WriteLine(); var font = FigletFont.Load("larry3d.flf"); Figlet figlet = new Figlet(font); Console.WriteLine(figlet.ToAscii("MichalBialecki.com"), Color.FromArgb(67, 144, 198)); }
static void Start() { Console.Title = Repeat(' ', 6) + "Script a story"; Console.WriteLine(Repeat(' ', 5) + "---------------------------------------------------"); FigletFont font = FigletFont.Load("D:/Projects/Shakespeare/Shakespeare/script.flf"); Figlet figlet = new Figlet(font); Console.WriteLine(figlet.ToAscii("Shakespeare"), ColorTranslator.FromHtml("#fdd835")); Console.WriteLine(Repeat(' ', 5) + "--------------------------------------------------"); }
/// <summary> /// Produce ASCII art text. Use a range of FIGlet fonts easily set via enum list. /// </summary> /// <param name="font">FIGlet Font enum</param> public static void WriteAsciiArt(FigFontEnum font, Color color, string text) { string fontPath = EmbeddedResourceHelper.GetEmbeddedResourcePath( font.ToString() + ".flf", "Dependencies_Embedded.FIGLetFonts", EmbeddedResourceHelper.TargetAssemblyType.Executing, true); var figFont = FigletFont.Load(fontPath); var figlet = new Figlet(figFont); Colorful.Console.WriteLine(figlet.ToAscii(text), color); }
public void ShowSplashScreen() { var bytes = _resourceService.ExtractResource("CryptoKeeper.Domain.Resources.cryptkeeper.jpg"); var asciiImage = _asciiImageConverterService.ImageToAscii(bytes); foreach (var character in asciiImage) { Colorful.Console.Write(character.Character, character.Color); Thread.Sleep(1); } var font = FigletFont.Load(_resourceService.ExtractResource("CryptoKeeper.Domain.Resources.chunky.flf")); var figlet = new Figlet(font); Colorful.Console.WriteLine(figlet.ToAscii("CryptoKeeper"), Color.Orange); Colorful.Console.WriteLine(figlet.ToAscii("CryptoKeeper"), Color.OrangeRed); Colorful.Console.WriteLine(figlet.ToAscii("CryptoKeeper"), Color.Red); Task.Delay(1000).Wait(); Console.ForegroundColor = ConsoleColor.White; Console.BackgroundColor = ConsoleColor.Black; //_clearConsoleService.Clear(); }
public static string GetText(string text, Stream stream) { var figlet = new Figlet(FigletFont.Load(stream)); var textWithFont = figlet.ToAscii(text).ToString() .Split(new[] { EnvironmentInfo.NewLine }, StringSplitOptions.RemoveEmptyEntries) .Where(x => !string.IsNullOrWhiteSpace(x)); return(EnvironmentInfo.NewLine + textWithFont.JoinNewLine() + EnvironmentInfo.NewLine); }
static void Main(string[] args) { FigletFont font = FigletFont.Load("standard.flf"); Figlet figlet = new Figlet(font); while (true) { Console.WriteLine(figlet.ToAscii(DateTime.Now.ToString("hh:mm:ss")), ColorTranslator.FromHtml("#00cc00")); Thread.Sleep(65); Console.Clear(); } }
public static void PrintStartScreen(string playerName, string gameName) { #if DEBUG FigletFont font = FigletFont.Load("../../../big.flf"); #else FigletFont font = FigletFont.Load("big.flf"); #endif Figlet figlet = new Figlet(font); // Set the Title Screen text List <ColorfulText> text = new List <ColorfulText> { new ColorfulText(figlet.ToAscii("Labyrinths:"), ColorTranslator.FromHtml("#aab64c")), new ColorfulText(figlet.ToAscii("Black Gate"), ColorTranslator.FromHtml("#4640ff")) }; var height = 16; PrintFrame(height, false, false, text, height + 2); PrintMessage("Hello " + playerName, false); PrintMessage("Welcome to " + gameName + ".", false); }
/// <summary> /// /// </summary> /// <param name="ts"></param> public static void ProcessDataArgs(DataModelArguments ts) { var currentDitectory = AppDomain.CurrentDomain.BaseDirectory; var fontPath = Path.Combine(currentDitectory, "figlet/small"); var fontTitle = new Figlet(Colorful.FigletFont.Load(fontPath)); Colorful.Console.WriteLine(fontTitle.ToAscii("Trifenix Connect"), Color.Red); // metadata model Colorful.Console.WriteLine(fontTitle.ToAscii("MDM"), Color.Purple); // generación de código para trifenix connect. Colorful.Console.WriteLine("Bienvenido a la generación de código de trifenix connect mdm", Color.BlueViolet); Colorful.Console.WriteLine("Usted ha seleccionado la generación de paquetes de Typescript para generar el modelo", Color.DarkGreen); Colorful.Console.WriteLine("Generación de paquete con la información", Color.DarkGreen); Colorful.Console.WriteLine("Generación datos del modelo", Color.DarkGreen); CreateDataModel(ts.Assembly, ts.modelNamespace, ts.inputNamespace, ts.docsNamespace, ts.esModelNamespace, ts.GitAddress, ts.username, ts.email, ts.branch); }
static void Main(string[] args) { Console.SetWindowSize(35, 35); FigletFont font = FigletFont.Load("slant.flf"); Figlet figlet = new Figlet(font); Console.WriteLine(figlet.ToAscii("Github"), ColorTranslator.FromHtml("#8AFFEF")); var content = @".------------------------------------------------------------------------------. | .mmMMMMMMMMMMMMMmm. | | .mMMMMMMMMMMMMMMMMMMMMMMMm. | | .mMMMMMMMMMMMMMMMMMMMMMMMMMMMMMm. | | .MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM. | | .MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM. | | MMMMMMMM' `""MMMMM""""""""""""""MMMM""""` 'MMMMMMMM | | MMMMMMMMM MMMMMMMMM | | MMMMMMMMMM: :MMMMMMMMMM | | .MMMMMMMMMM MMMMMMMMMM. | | MMMMMMMMM"" ""MMMMMMMMM | | MMMMMMMMM MMMMMMMMM | | MMMMMMMMM MMMMMMMMM | | MMMMMMMMMM MMMMMMMMMM | | `MMMMMMMMMM MMMMMMMMMM` | | MMMMMMMMMMMM. .MMMMMMMMMMMM | | MMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMM | | MMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMM | | `MMMMMMMMMMMMMM MMMMMMMMMMMMMM` | | `MMMMMMMMMMMM MMMMMMMMMMMM` | | `""MMMMMMMMM MMMMMMMMM""` | | `""MMMMMM MMMMMM""` | | `""""M M""""` | '------------------------------------------------------------------------------'"; var lines = content.Split(new [] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); int r = 225; int g = 255; int b = 250; for (int i = 0; i < lines.Length; i++) { Console.WriteLine(lines[i], Color.FromArgb(r, g, b)); r -= 8; b -= 4; } Console.ReadLine(); }
/// <summary> /// Procesa el modelo de mdm en typescript /// </summary> /// <param name="ts"></param> public static void ProcessArgs(ModelArguments ts) { //FIGlet es una aplicación informática que genera banners de texto, en varias tipografías, formadas por letras compuestas por conglomerados de caracteres ASCII más pequeños. var currentDitectory = AppDomain.CurrentDomain.BaseDirectory; var fontPath = Path.Combine(currentDitectory, "figlet/small"); var fontTitle = new Figlet(Colorful.FigletFont.Load(fontPath)); Colorful.Console.WriteLine(fontTitle.ToAscii("Trifenix Connect"), Color.Red); // metadata model Colorful.Console.WriteLine(fontTitle.ToAscii("MDM"), Color.Purple); // generación de código para trifenix connect. Colorful.Console.WriteLine("Bienvenido a la generación de código de trifenix connect mdm", Color.BlueViolet); Colorful.Console.WriteLine("Usted ha seleccionado la generación de paquetes de Typescript", Color.DarkGreen); Colorful.Console.WriteLine("Generación de paquete con los tipos base de MDM", Color.DarkGreen); // Usa typegen para generar el módelo. CreateBaseModelPackage(ts.GitAddress, ts.email, ts.username, ts.branch); }
public static void DisplayGameTitle(GameTitle gameTitle) { var font = FigletFont.Default; var figlet = new Figlet(font); Console.ReplaceAllColorsWithDefaults(); Console.WriteLine(figlet.ToAscii(gameTitle.Title), gameTitle.TitleTextColor); Console.WriteLine(); Console.WriteLine("\t-- Written by " + gameTitle.Author + "--", gameTitle.AuthorTextColor); Console.WriteLine("\n\n"); Console.WriteWithGradient(ConsoleStrings.PressEnterPrompt, Color.Yellow, Color.DarkRed, 4); Console.ReadLine(); Console.ReplaceAllColorsWithDefaults(); Console.Clear(); }
public GridMutation WriteText(int x, int y, string text) { Figlet figlet = new Figlet(); StyledString f = figlet.ToAscii(text); var mutation = new GridMutation(); for (int _y = 0; _y < f.CharacterGeometry.GetLength(0); _y++) { for (int _x = 0; _x < f.CharacterGeometry.GetLength(1); _x++) { mutation.AddTarget(new DrawablePoint(_x + x, _y + y, f.CharacterGeometry[_y, _x])); } } return(mutation); }
public override void Begin(bool onlyMessage = false) { Console.Clear(); Console.WriteLine(_figlet.ToAscii("Verificador de Palindromos"), ColorTranslator.FromHtml("#0000ff")); Console.WriteLine("Bem vindo ao verificador de palíndromos!", Color.SkyBlue); Console.WriteLine("Um palíndromo é uma frase ou palavra que se pode ler, indiferentemente, da esquerda para a direita ou vice-versa", Color.SkyBlue); ReadData("Insira uma string: "); if (!onlyMessage) { ProcessInput(); Execute(); ShowResult(); RetryOrExit(); } }
/// <summary> /// <see cref="http://try.docopt.org"/> /// <see cref="https://stackoverflow.com/questions/16863371/why-doesnt-my-docopt-option-have-its-default-value"/> /// <see cref="https://dmerej.info/blog/post/docopt-v-argparse/"/> /// <see cref="https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/linq/how-to-compare-the-contents-of-two-folders-linq"/> /// </summary> /// <param name="args"></param> static void Main(string[] args) { var assembly = Assembly.GetExecutingAssembly(); var fontArr = ArrayHelper.GetByteArray(assembly.GetManifestResourceStream($"Synctool.Contessa.flf")); var usageArr = ArrayHelper.GetByteArray(assembly.GetManifestResourceStream($"Synctool.Usage.txt")); try { var arguments = new Docopt().Apply(Encoding.Default.GetString(usageArr), args, version: "Synctool", exit: false); PrintHelper.Silent = arguments["--silent"].IsTrue; FigletFont font = FigletFont.Load(fontArr); Figlet figlet = new Figlet(font); PrintHelper.Print(figlet.ToAscii("Synctool"), Color.Blue); PrintHelper.PrintLine("Command line tool that sync files and folders recursively" + Environment.NewLine, Color.White); try { Run(args, arguments); Environment.Exit(0); } catch (Exception ex) { PrintHelper.Silent = false; PrintHelper.Print(ex.ToString(), Color.Red); Environment.Exit(2); } } catch { PrintHelper.Silent = false; PrintHelper.PrintLine(Encoding.Default.GetString(usageArr)); PrintHelper.PrintLine(string.Empty); PrintHelper.PrintLine("Install/Uninstall tool:"); PrintHelper.PrintLine($@" > To install tool from system"); PrintHelper.PrintLine($@" dotnet tool install -g synctool", Color.Green); PrintHelper.PrintLine(string.Empty); PrintHelper.PrintLine($@" > To uninstall tool from system"); PrintHelper.PrintLine($@" dotnet tool uninstall -g synctool", Color.Green); Environment.Exit(1); } }
static void Main(string[] args) { Figlet figlet = new Figlet(); Console.WriteLine(figlet.ToAscii("Pokemon"), Color.FromArgb(67, 144, 198)); string baseUrl = "https://pokeapi.co/api/v2/pokemon/"; GetPokemonAsync(baseUrl); String pokeName = ""; while (true) { Console.WriteLine("Type pokeList to get the full list of Pokemons."); Console.Write("Enter pokemon name or enter pokeout to close the app: "); pokeName = Console.ReadLine(); if (pokeName.ToLower() == "pokeout") { Environment.Exit(0); } else { int value; if (int.TryParse(pokeName, out value) || string.IsNullOrWhiteSpace(pokeName)) { Console.WriteLine("You enterd numerical/empty value please enter name only!"); } else if (pokeName.ToLower() == "pokelist") { GetPokemonAsync(baseUrl); } else if (!pokemons.ContainsKey(pokeName)) { Console.WriteLine("Pokemon name does not exist please enter correct pokemon name or enter pokeout to close the app: "); } else { Pokemon pokeObj = pokemons[pokeName]; GetPokemonByName(pokeObj.Name, pokeObj.Url); Console.WriteLine(); } } } }
private static void _showPreview() { var assembly = typeof(Program).GetTypeInfo().Assembly; string[] resourceNames = assembly.GetManifestResourceNames(); List <string> fonts = resourceNames.Where(w => w.EndsWith(".flf")).ToList(); foreach (string font in fonts) { string fontName = font.Replace("dotnet_figlet.Console.Fonts.", ""); Stream resource = assembly.GetManifestResourceStream(font); FigletFont figletFont = FigletFont.Load(resource); Figlet figlet = new Figlet(figletFont); Console.WriteLine(fontName); Console.WriteLine(figlet.ToAscii("Lorem Ipsum")); } }
internal static void PrintGreeting() { Figlet figlet = Figlets.GetFiglet(FigletName.Basic); Console.WriteLine("===============================\n\n\n", Color.White); Console.WriteLine(figlet.ToAscii("Omniwave"), ColorTranslator.FromHtml("#B8DBFF")); Console.WriteLine("===============================", Color.White); Console.Write("Written by: ", ColorTranslator.FromHtml("#efefef")); Console.WriteLine("Jason Drawdy", ColorTranslator.FromHtml("#8AFFEF")); Console.Write("Original by: ", ColorTranslator.FromHtml("#efefef")); Console.WriteLine("Terence McKenna & Peter Meyer", ColorTranslator.FromHtml("#8AFFEF")); Console.Write("Ported by: ", ColorTranslator.FromHtml("#efefef")); Console.WriteLine("John A. Phelps", ColorTranslator.FromHtml("#8AFFEF")); Console.Write("Date: ", ColorTranslator.FromHtml("#efefef")); Console.WriteLine("6.9.2018", ColorTranslator.FromHtml("#8AFFEF")); Console.Write("Description: ", ColorTranslator.FromHtml("#efefef")); Console.WriteLine("Calculates a timewave to a given point and beyond.", ColorTranslator.FromHtml("#8AFFEF")); Console.WriteLine("===============================", Color.White); }
public async Task Figlet(CommandContext ctx, [RemainingText] string message) { message.RequireRemainingText(); var figlet = new Figlet(FigletFont); try { await ctx.RespondAsync($"```{figlet.ToAscii(message).ConcreteValue}```"); } catch (ArgumentException) { await new ModernEmbedBuilder { Color = EmbedUtils.Red, Description = await ctx.Lang("figlet.specialCharacters") }.AddGeneratedForFooter(ctx, false).Send(ctx.Channel); } }
static void Main(string[] args) { FigletFont font = FigletFont.Load("../../../doh.flf"); Figlet figlet = new Figlet(font); Tree <int> tree = new Tree <int>(); Random random = new Random(); int[] array = { 10, 20, 30, 40, 50, 25 }; for (int i = 0; i < array.Length; i++) { tree.Insert(array[i]); Console.WriteLine(figlet.ToAscii(array[i].ToString()), Color.DarkOrange); } tree.Delete(50); tree.Delete(1000); }
static void Main(string[] args) { var desc = "FFmpeg batch"; var fontArr = System.Text.Encoding.Default.GetBytes(ContessaFont.CONTESSA); FigletFont font = FigletFont.Load(fontArr); Figlet figlet = new Figlet(font); Console.WriteLine(figlet.ToAscii(desc), Color.Blue); ValueArgument <string> source = new ValueArgument <string>( 's', "source", "Specify the path and search pattern of source files"); source.Optional = false; ValueArgument <string> output = new ValueArgument <string>( 'o', "output", "Specify the output format extension"); output.Optional = false; var parser = new CommandLineParser.CommandLineParser(); parser.Arguments.Add(source); parser.Arguments.Add(output); Console.WriteFormatted("Convert multiple audio and video files using ", Color.White); Console.WriteLineFormatted("FFmpeg", Color.Green); try { parser.ParseCommandLine(args); Run(source.Value, output.Value).Wait(); Environment.Exit(0); } catch (CommandLineException e) { parser.ShowUsage(); Console.WriteLine("Examples:"); Console.WriteLine(string.Empty); Console.WriteLine($@" > To convert all wav files in currenty folder (and sub-directories recursivelly) and convert to mp3 format"); Console.WriteLineFormatted($@" ffmpeg-batch -s /**/*.wav -o mp3", Color.Green); Console.WriteLine(string.Empty); Console.WriteLine($@" > To convert all wma files in c:\music and convert to mp3 format"); Console.WriteLineFormatted($@" ffmpeg-batch -s c:\music\*.wma -o mp3", Color.Green); Console.WriteLine(Environment.NewLine); Console.WriteLine("Install/Uninstall tool:"); Console.WriteLine(string.Empty); Console.WriteLine($@" > To install tool from system"); Console.WriteLineFormatted($@" dotnet tool install -g ffmpeg-batch", Color.Green); Console.WriteLine(string.Empty); Console.WriteLine($@" > To uninstall tool from system"); Console.WriteLineFormatted($@" dotnet tool uninstall -g ffmpeg-batch", Color.Green); Environment.Exit(1); } catch (Exception e) { Console.WriteLine("Error executing utility"); Console.WriteLine(e.ToString()); Environment.Exit(2); } }