Skip to content

Commit 2aba0bd

Browse files
committed
refactor: Use internal/path instead of local implementation
1 parent 3f90505 commit 2aba0bd

File tree

29 files changed

+92
-317
lines changed

29 files changed

+92
-317
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ infection.* export-ignore
1414
tests export-ignore
1515
docs export-ignore
1616
resources/mock export-ignore
17+
CLAUDE.* export-ignore
1718

1819
*.http binary
1920
*.gpg binary

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"php": ">=8.1",
2424
"composer/semver": "^3.4",
2525
"internal/destroy": "^1.0",
26+
"internal/path": "^1.2",
2627
"internal/toml": "^1.0.3",
2728
"nyholm/psr7": "^1.8",
2829
"psr/container": "1 - 2",

composer.lock

Lines changed: 64 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Command/Init.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
namespace Internal\DLoad\Command;
66

7-
use Internal\DLoad\Module\Common\FileSystem\Path;
87
use Internal\DLoad\Module\Config\Schema\Action\Download as DownloadConfig;
98
use Internal\DLoad\Module\Config\Schema\Embed\Software;
109
use Internal\DLoad\Module\Config\ConfigBuilder;
1110
use Internal\DLoad\Module\Downloader\SoftwareCollection;
11+
use Internal\Path;
1212
use Symfony\Component\Console\Attribute\AsCommand;
1313
use Symfony\Component\Console\Command\Command;
1414
use Symfony\Component\Console\Helper\QuestionHelper;

src/Command/Show.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
use Internal\DLoad\Module\Binary\Binary;
88
use Internal\DLoad\Module\Binary\BinaryProvider;
9-
use Internal\DLoad\Module\Common\FileSystem\Path;
109
use Internal\DLoad\Module\Config\Schema\Actions;
1110
use Internal\DLoad\Module\Downloader\SoftwareCollection;
11+
use Internal\Path;
1212
use Symfony\Component\Console\Attribute\AsCommand;
1313
use Symfony\Component\Console\Command\Command;
1414
use Symfony\Component\Console\Input\InputArgument;

src/DLoad.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use Internal\DLoad\Module\Binary\BinaryProvider;
99
use Internal\DLoad\Module\Common\DloadResult;
1010
use Internal\DLoad\Module\Common\FileSystem\FS;
11-
use Internal\DLoad\Module\Common\FileSystem\Path;
1211
use Internal\DLoad\Module\Common\Input\Destination;
1312
use Internal\DLoad\Module\Common\OperatingSystem;
1413
use Internal\DLoad\Module\Config\Schema\Action\Download as DownloadConfig;
@@ -24,6 +23,7 @@
2423
use Internal\DLoad\Module\Version\Constraint;
2524
use Internal\DLoad\Module\Version\Version;
2625
use Internal\DLoad\Service\Logger;
26+
use Internal\Path;
2727
use React\Promise\PromiseInterface;
2828
use Symfony\Component\Console\Output\OutputInterface;
2929

src/Module/Binary/Binary.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Internal\DLoad\Module\Binary;
66

77
use Internal\DLoad\Module\Binary\Exception\BinaryExecutionException;
8-
use Internal\DLoad\Module\Common\FileSystem\Path;
8+
use Internal\Path;
99

1010
/**
1111
* Represents a binary executable with operations for version checking.

src/Module/Binary/BinaryProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
namespace Internal\DLoad\Module\Binary;
66

7-
use Internal\DLoad\Module\Common\FileSystem\Path;
87
use Internal\DLoad\Module\Config\Schema\Embed\Binary as BinaryConfig;
8+
use Internal\Path;
99

1010
/**
1111
* Provider for obtaining binary instances.

src/Module/Binary/Internal/AbstractBinary.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
use Internal\DLoad\Module\Binary\Binary;
88
use Internal\DLoad\Module\Binary\BinaryVersion;
9-
use Internal\DLoad\Module\Common\FileSystem\Path;
109
use Internal\DLoad\Module\Config\Schema\Embed\Binary as BinaryConfig;
10+
use Internal\Path;
1111

1212
abstract class AbstractBinary implements Binary
1313
{

src/Module/Binary/Internal/BinaryExecutor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
namespace Internal\DLoad\Module\Binary\Internal;
66

77
use Internal\DLoad\Module\Binary\Exception\BinaryExecutionException;
8-
use Internal\DLoad\Module\Common\FileSystem\Path;
98
use Internal\DLoad\Service\Logger;
9+
use Internal\Path;
1010

1111
/**
1212
* Executes binary commands and captures their output.

0 commit comments

Comments
 (0)