diff --git a/phpmon/Classes/Commands/Startup.swift b/phpmon/Classes/Commands/Startup.swift index fa8e3d5..63a3434 100644 --- a/phpmon/Classes/Commands/Startup.swift +++ b/phpmon/Classes/Commands/Startup.swift @@ -71,6 +71,9 @@ class Startup { breaking: false ) + let brewPhpAlias = Shell.user.pipe("brew info php --json"); + print(brewPhpAlias) + if (!self.failed) { success() } diff --git a/phpmon/Singletons/App.swift b/phpmon/Singletons/App.swift index ad179e5..a69fcc0 100644 --- a/phpmon/Singletons/App.swift +++ b/phpmon/Singletons/App.swift @@ -32,4 +32,12 @@ class App { */ var timer: Timer? + /** + The version that the `php` formula via Brew is aliased to on the current system. + + If you're up to date, `php` will be aliased to the latest version, + but that might not be the case. + */ + var brewPhpAlias: String? = nil + }