From 7b7fafbce93d9ea3f46fad5dca60dd58cd4ea220 Mon Sep 17 00:00:00 2001 From: Matthias Langhard Date: Thu, 4 Nov 2021 21:20:41 +0100 Subject: [PATCH] feat: implements spinner which runs when pushing tags / commits to remote --- src/Cli/AppRunner.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/Cli/AppRunner.cs b/src/Cli/AppRunner.cs index 8ce0ff8..85fa8b6 100644 --- a/src/Cli/AppRunner.cs +++ b/src/Cli/AppRunner.cs @@ -25,11 +25,18 @@ namespace Cli var repoBasePath = await GetRepoBasePath(workingDir); var chosenService = await ChooseService(repoBasePath); var selection = await SelectVersion(repoBasePath, chosenService); - await AddVersionTagToRepo(repoBasePath, selection.Version.ToString()); - await PushTagsToRemote(repoBasePath); - await PushCommitsToRemote(repoBasePath); + + await AnsiConsole.Status() + .StartAsync("pushing to remote...", async _ => + { + await AddVersionTagToRepo(repoBasePath, selection.Version.ToString()); + await PushTagsToRemote(repoBasePath); + await PushCommitsToRemote(repoBasePath); + } + ); } + private async Task GetRepoBasePath(string workingDir) { var repoBasePath = "";