From 40c24793f595928728c11b4c4aaf908bf0e068fb Mon Sep 17 00:00:00 2001 From: Nico Verbruggen Date: Wed, 24 May 2023 19:08:41 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Show=20"Please=20wait"=20text=20?= =?UTF-8?q?when=20running=20command?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Homebrew/Commands/InstallAndUpgradeCommand.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/phpmon/Domain/Integrations/Homebrew/Commands/InstallAndUpgradeCommand.swift b/phpmon/Domain/Integrations/Homebrew/Commands/InstallAndUpgradeCommand.swift index 29f162f..20ed421 100644 --- a/phpmon/Domain/Integrations/Homebrew/Commands/InstallAndUpgradeCommand.swift +++ b/phpmon/Domain/Integrations/Homebrew/Commands/InstallAndUpgradeCommand.swift @@ -33,6 +33,14 @@ class InstallAndUpgradeCommand: BrewCommand { } func execute(onProgress: @escaping (BrewCommandProgress) -> Void) async throws { + let progressTitle = "Please wait..." + + onProgress(.create( + value: 0.2, + title: progressTitle, + description: "PHP Monitor is preparing Homebrew..." + )) + // Try to run all upgrade and installation operations try await self.upgradePackages(onProgress) try await self.installPackages(onProgress)