feat: implements spinner which runs when pushing tags / commits to remote
This commit is contained in:
@@ -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<string> GetRepoBasePath(string workingDir)
|
||||
{
|
||||
var repoBasePath = "";
|
||||
|
||||
Reference in New Issue
Block a user