commit 7ea1caf1775fc62e331345687f684fb220fce76d
parent 2b9f2f349155c4e0ad151e2b0a1d1fa3eb9c0019
Author: Easton Pillay <easton@planeteaston.com>
Date: Mon, 25 Oct 2021 15:32:21 -0500
Added progress indication to InstallMultiplePackages. (#1613)
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/AppInstallerCLICore/Workflows/InstallFlow.cpp b/src/AppInstallerCLICore/Workflows/InstallFlow.cpp
@@ -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;