Skip to content

Commit c671609

Browse files
Merge pull request #45 from sheafui/feat/external-deps
handle external dependencies
2 parents f74f6cb + 169979f commit c671609

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Traits/CanHandleDependenciesInstallation.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,10 @@ public function installExternalDeps(array $deps)
155155
}
156156

157157
$this->command->info(" ↳ Installing $name External Dependencies");
158-
foreach ($deps as $key => $dep) {
159-
$this->command->info(" <fg=white>Installing</fg=white> <bg=green, fg=white>$key</bg=green,>...");
160-
Process::run($dep[1]);
158+
foreach ($deps as $dep) {
159+
$name = key($dep);
160+
$this->command->info(" <fg=white>Installing</fg=white> <bg=green>$name</bg=green>...");
161+
Process::run($dep[$name]);
161162
}
162163
}
163164

tests/Feature/Commands/RemoveCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
});
4848

4949

50-
it("Removes an installed component along with its dependencies when removal is confirmed.", function () {
50+
it("Removes an installed component along with its dependencies when removal is confirmed. update test descriptions for component removal scenarios", function () {
5151

5252
$component = 'autocomplete';
5353
$dependency = 'icon';

0 commit comments

Comments
 (0)