Refactor shell utilities: reorganize namespaces and introduce Shell base class

This commit is contained in:
crazywhalecc
2025-08-06 20:28:25 +08:00
committed by Jerry Ma
parent cc447a089a
commit e28580de00
10 changed files with 314 additions and 150 deletions

View File

@@ -48,17 +48,17 @@ abstract class TestBase extends TestCase
/**
* Create a UnixShell instance with debug disabled to suppress logs
*/
protected function createUnixShell(): \SPC\util\UnixShell
protected function createUnixShell(): \SPC\util\shell\UnixShell
{
return new \SPC\util\UnixShell(false);
return new \SPC\util\shell\UnixShell(false);
}
/**
* Create a WindowsCmd instance with debug disabled to suppress logs
*/
protected function createWindowsCmd(): \SPC\util\WindowsCmd
protected function createWindowsCmd(): \SPC\util\shell\WindowsCmd
{
return new \SPC\util\WindowsCmd(false);
return new \SPC\util\shell\WindowsCmd(false);
}
/**