From 99f661a1012835838bf9eb75cbf2750147182777 Mon Sep 17 00:00:00 2001 From: "waffle.lord" Date: Fri, 17 Jun 2022 18:18:48 -0400 Subject: [PATCH] updating fancy --- EftPatchHelper/EftPatchHelper/Helpers/FolderCleaner.cs | 2 +- EftPatchHelper/EftPatchHelper/Helpers/FolderCopy.cs | 2 +- EftPatchHelper/EftPatchHelper/Program.cs | 2 ++ EftPatchHelper/EftPatchHelper/Tasks/CreateReleaseTasks.cs | 2 +- EftPatchHelper/EftPatchHelper/Tasks/PatchGenTasks.cs | 2 +- EftPatchHelper/EftPatchHelper/Tasks/PatchTestingTasks.cs | 2 +- 6 files changed, 7 insertions(+), 5 deletions(-) diff --git a/EftPatchHelper/EftPatchHelper/Helpers/FolderCleaner.cs b/EftPatchHelper/EftPatchHelper/Helpers/FolderCleaner.cs index dfaebb0..3d6a2f5 100644 --- a/EftPatchHelper/EftPatchHelper/Helpers/FolderCleaner.cs +++ b/EftPatchHelper/EftPatchHelper/Helpers/FolderCleaner.cs @@ -21,7 +21,7 @@ namespace EftPatchHelper.Helpers public static void Clean(string FolderPath) { AnsiConsole.Status() - .Spinner(Spinner.Known.Default) + .Spinner(Spinner.Known.Dots2) .Start($"Cleaning Folder ...", ctx => { AnsiConsole.MarkupLine($"[blue]INFO:[/] [gray]Getting folders to remove for {FolderPath} ...[/]"); diff --git a/EftPatchHelper/EftPatchHelper/Helpers/FolderCopy.cs b/EftPatchHelper/EftPatchHelper/Helpers/FolderCopy.cs index cd3f9af..3dddad2 100644 --- a/EftPatchHelper/EftPatchHelper/Helpers/FolderCopy.cs +++ b/EftPatchHelper/EftPatchHelper/Helpers/FolderCopy.cs @@ -55,7 +55,7 @@ namespace EftPatchHelper.Helpers new ProgressBarColumn(), new PercentageColumn(), new ElapsedTimeColumn(), - new SpinnerColumn() + new SpinnerColumn(Spinner.Known.Dots2) }) .Start(ctx => { diff --git a/EftPatchHelper/EftPatchHelper/Program.cs b/EftPatchHelper/EftPatchHelper/Program.cs index 546fe12..af0cb4b 100644 --- a/EftPatchHelper/EftPatchHelper/Program.cs +++ b/EftPatchHelper/EftPatchHelper/Program.cs @@ -21,6 +21,8 @@ namespace EftPatchHelper public static void Main(string[] args) { + Console.OutputEncoding = System.Text.Encoding.UTF8; + AnsiConsole.Write(new FigletText("EFT Patch Helper").Centered().Color(Color.Blue)); var host = ConfigureHost(args); diff --git a/EftPatchHelper/EftPatchHelper/Tasks/CreateReleaseTasks.cs b/EftPatchHelper/EftPatchHelper/Tasks/CreateReleaseTasks.cs index 67e0b65..efe1d9c 100644 --- a/EftPatchHelper/EftPatchHelper/Tasks/CreateReleaseTasks.cs +++ b/EftPatchHelper/EftPatchHelper/Tasks/CreateReleaseTasks.cs @@ -21,7 +21,7 @@ namespace EftPatchHelper.Tasks private bool UploadAsset(FileInfo file, Release release, RepositoryApi repo) { - return AnsiConsole.Status().Start("Uploading Asset", (StatusContext context) => + return AnsiConsole.Status().Spinner(Spinner.Known.Arrow3).Start("Uploading Asset", (StatusContext context) => { AnsiConsole.MarkupLine($"[blue]Adding release asset: {file.Name.EscapeMarkup()}[/]"); diff --git a/EftPatchHelper/EftPatchHelper/Tasks/PatchGenTasks.cs b/EftPatchHelper/EftPatchHelper/Tasks/PatchGenTasks.cs index 1c8c877..250904d 100644 --- a/EftPatchHelper/EftPatchHelper/Tasks/PatchGenTasks.cs +++ b/EftPatchHelper/EftPatchHelper/Tasks/PatchGenTasks.cs @@ -37,7 +37,7 @@ namespace EftPatchHelper.Tasks _options.OutputPatchPath = Path.Join(patcherPath, patcherOutputName); - return AnsiConsole.Status().Start("Staring Patch Generator ...", (StatusContext context) => + return AnsiConsole.Status().Spinner(Spinner.Known.Shark).Start("Staring Patch Generator ...", (StatusContext context) => { var genProc = Process.Start(new ProcessStartInfo() { diff --git a/EftPatchHelper/EftPatchHelper/Tasks/PatchTestingTasks.cs b/EftPatchHelper/EftPatchHelper/Tasks/PatchTestingTasks.cs index 36bec98..913ec1a 100644 --- a/EftPatchHelper/EftPatchHelper/Tasks/PatchTestingTasks.cs +++ b/EftPatchHelper/EftPatchHelper/Tasks/PatchTestingTasks.cs @@ -34,7 +34,7 @@ namespace EftPatchHelper.Tasks patcherCopy.Start(false, true); - return AnsiConsole.Status().Start("Starting Patcher ...", (StatusContext context) => + return AnsiConsole.Status().Spinner(Spinner.Known.Shark).Start("Starting Patcher ...", (StatusContext context) => { var patchProcess = Process.Start(new ProcessStartInfo() {