refactor and add more linux extensions and libraries

This commit is contained in:
crazywhalecc
2023-03-26 22:27:51 +08:00
parent 17e0265ed0
commit 84b1732683
38 changed files with 1059 additions and 360 deletions

View File

@@ -3,6 +3,7 @@
declare(strict_types=1);
use Psr\Log\LoggerInterface;
use SPC\util\UnixShell;
use ZM\Logger\ConsoleLogger;
/**
@@ -95,3 +96,8 @@ function f_mkdir(string $directory, int $permissions = 0777, bool $recursive = f
logger()->debug('Making new directory ' . ($recursive ? 'recursive' : '') . ': ' . $directory);
return mkdir($directory, $permissions, $recursive);
}
function shell(): UnixShell
{
return new UnixShell();
}