1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-08 04:20:07 +02:00

🚧 WIP: Get JSON about current PHP version

This commit is contained in:
2020-11-26 17:02:24 +01:00
parent 64a605235a
commit 1887b19329
2 changed files with 11 additions and 0 deletions

View File

@ -71,6 +71,9 @@ class Startup {
breaking: false breaking: false
) )
let brewPhpAlias = Shell.user.pipe("brew info php --json");
print(brewPhpAlias)
if (!self.failed) { if (!self.failed) {
success() success()
} }

View File

@ -32,4 +32,12 @@ class App {
*/ */
var timer: Timer? 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
} }