mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-08 04:20:07 +02:00
♻️ Rework various common classes
This commit is contained in:
@ -31,9 +31,11 @@ if !AllowedArguments.has(argument) {
|
||||
|
||||
let action = AllowedArguments.init(rawValue: argument)
|
||||
|
||||
let switcher = PhpSwitcher.shared
|
||||
PhpSwitcher.detectPhpVersions()
|
||||
|
||||
switch action {
|
||||
case .use:
|
||||
// Read the PHP value
|
||||
let version = CommandLine.arguments[2]
|
||||
print("Switching to PHP \(version)...")
|
||||
break
|
||||
|
Reference in New Issue
Block a user