2.x - console (wip)

This commit is contained in:
Saeed Vaziry
2024-10-02 23:46:53 +02:00
parent 906ddc38de
commit 63e7cfd8f7
9 changed files with 181 additions and 9 deletions

View File

@ -40,7 +40,7 @@ public function connect(bool $sftp = false): void
}
}
public function exec(string $command, string $log = '', ?int $siteId = null, ?bool $stream = false): string
public function exec(string $command, string $log = '', ?int $siteId = null, ?bool $stream = false, ?callable $streamCallback = null): string
{
if (! $this->log && $log) {
$this->log = $this->server->logs()->create([