mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 08:45:40 +08:00
add windows support
This commit is contained in:
@@ -50,6 +50,11 @@ class WindowsCmd
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function execWithWrapper(string $wrapper, string $args): WindowsCmd
|
||||
{
|
||||
return $this->exec($wrapper . ' "' . str_replace('"', '^"', $args) . '"');
|
||||
}
|
||||
|
||||
public function execWithResult(string $cmd, bool $with_log = true): array
|
||||
{
|
||||
if ($with_log) {
|
||||
|
||||
Reference in New Issue
Block a user