Skip to content

Commit

Permalink
Added progress indication to InstallMultiplePackages. (#1613)
Browse files Browse the repository at this point in the history
  • Loading branch information
jedieaston authored Oct 25, 2021
1 parent 2b9f2f3 commit 7ea1caf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/AppInstallerCLICore/Workflows/InstallFlow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,16 @@ namespace AppInstaller::CLI::Workflow
}

bool allSucceeded = true;
size_t packagesCount = context.Get<Execution::Data::PackagesToInstall>().size();
size_t packagesProgress = 0;

for (auto package : context.Get<Execution::Data::PackagesToInstall>())
{
Logging::SubExecutionTelemetryScope subExecution{ package.PackageSubExecutionId };

packagesProgress++;
context.Reporter.Info() << "(" << packagesProgress << "/" << packagesCount << ") ";

// We want to do best effort to install all packages regardless of previous failures
auto installContextPtr = context.Clone();
Execution::Context& installContext = *installContextPtr;
Expand Down

0 comments on commit 7ea1caf

Please sign in to comment.