From 62f5d85bbeda4ae1faba3c8e81ac57337b6c38e9 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Mon, 14 Jul 2025 12:04:32 +0200 Subject: [PATCH 1/2] Show Refitter title as ASCII Art --- src/Refitter/GenerateCommand.cs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/Refitter/GenerateCommand.cs b/src/Refitter/GenerateCommand.cs index 7edbfd45e..737eb89ce 100644 --- a/src/Refitter/GenerateCommand.cs +++ b/src/Refitter/GenerateCommand.cs @@ -34,12 +34,24 @@ public override async Task ExecuteAsync(CommandContext context, Settings se if (version == "1.0.0.0") version += " (local build)"; + const string asciiArt = +""" + ██████╗ ███████╗███████╗██╗████████╗████████╗███████╗██████╗ + ██╔══██╗██╔════╝██╔════╝██║╚══██╔══╝╚══██╔══╝██╔════╝██╔══██╗ + ██████╔╝█████╗ █████╗ ██║ ██║ ██║ █████╗ ██████╔╝ + ██╔══██╗██╔══╝ ██╔══╝ ██║ ██║ ██║ ██╔══╝ ██╔══██╗ + ██║ ██║███████╗██║ ██║ ██║ ██║ ███████╗██║ ██║ + ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝ +"""; + // Header with branding AnsiConsole.WriteLine(); - AnsiConsole.MarkupLine("[bold cyan]╔══════════════════════════════════════════════════════════════════════════════╗[/]"); + AnsiConsole.MarkupLine($"[bold cyan]{asciiArt}[/]"); + AnsiConsole.WriteLine(); + AnsiConsole.MarkupLine($"[bold cyan]╔══════════════════════════════════════════════════════════════════════════════╗[/]"); AnsiConsole.MarkupLine($"[bold cyan]║[/] [bold white]🚀 Refitter v{version,-63}[/] [bold cyan]║[/]"); AnsiConsole.MarkupLine($"[bold cyan]║[/] [dim] OpenAPI to Refit Interface Generator[/]{new string(' ', 37)} [bold cyan]║[/]"); - AnsiConsole.MarkupLine("[bold cyan]╚══════════════════════════════════════════════════════════════════════════════╝[/]"); + AnsiConsole.MarkupLine($"[bold cyan]╚══════════════════════════════════════════════════════════════════════════════╝[/]"); AnsiConsole.WriteLine(); // Support information From 20da76f70eae80af6817062b9c6339cb2e0511d0 Mon Sep 17 00:00:00 2001 From: Christian Helle Date: Tue, 15 Jul 2025 09:31:05 +0200 Subject: [PATCH 2/2] Reduce box size around Refitter version info --- src/Refitter/GenerateCommand.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Refitter/GenerateCommand.cs b/src/Refitter/GenerateCommand.cs index 737eb89ce..cf5dfc086 100644 --- a/src/Refitter/GenerateCommand.cs +++ b/src/Refitter/GenerateCommand.cs @@ -47,11 +47,10 @@ public override async Task ExecuteAsync(CommandContext context, Settings se // Header with branding AnsiConsole.WriteLine(); AnsiConsole.MarkupLine($"[bold cyan]{asciiArt}[/]"); - AnsiConsole.WriteLine(); - AnsiConsole.MarkupLine($"[bold cyan]╔══════════════════════════════════════════════════════════════════════════════╗[/]"); - AnsiConsole.MarkupLine($"[bold cyan]║[/] [bold white]🚀 Refitter v{version,-63}[/] [bold cyan]║[/]"); - AnsiConsole.MarkupLine($"[bold cyan]║[/] [dim] OpenAPI to Refit Interface Generator[/]{new string(' ', 37)} [bold cyan]║[/]"); - AnsiConsole.MarkupLine($"[bold cyan]╚══════════════════════════════════════════════════════════════════════════════╝[/]"); + AnsiConsole.MarkupLine($"[bold cyan]╔═══════════════════════════════════════════════════════════════╗[/]"); + AnsiConsole.MarkupLine($"[bold cyan]║[/] [bold white]🚀 Refitter v{version,-48}[/] [bold cyan]║[/]"); + AnsiConsole.MarkupLine($"[bold cyan]║[/] [dim] OpenAPI to Refit Interface Generator[/]{new string(' ', 22)} [bold cyan]║[/]"); + AnsiConsole.MarkupLine($"[bold cyan]╚═══════════════════════════════════════════════════════════════╝[/]"); AnsiConsole.WriteLine(); // Support information