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:
@ -71,6 +71,9 @@ class Startup {
|
||||
breaking: false
|
||||
)
|
||||
|
||||
let brewPhpAlias = Shell.user.pipe("brew info php --json");
|
||||
print(brewPhpAlias)
|
||||
|
||||
if (!self.failed) {
|
||||
success()
|
||||
}
|
||||
|
@ -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
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user