add basic FreeBSD support for utils

This commit is contained in:
crazywhalecc
2023-10-15 13:07:13 +08:00
committed by Jerry Ma
parent a983667b90
commit 84d1c789bd
11 changed files with 422 additions and 2 deletions

View File

@@ -60,6 +60,7 @@ function osfamily2dir(): string
'Windows', 'WINNT', 'Cygwin' => 'windows',
'Darwin' => 'macos',
'Linux' => 'linux',
'BSD' => 'freebsd',
default => throw new WrongUsageException('Not support os: ' . PHP_OS_FAMILY),
};
}