Skip to content

Commit 8118b3a

Browse files
authored
Add update castor task
1 parent 3978933 commit 8118b3a

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

castor.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,18 @@ function install(): void
8989
qa\install();
9090
}
9191

92+
#[AsTask(description: 'Update dependencies')]
93+
function update(bool $withTools = false): void
94+
{
95+
io()->title('Updating dependencies...');
96+
97+
// docker_compose_run('composer update -o');
98+
99+
if ($withTools) {
100+
qa\update();
101+
}
102+
}
103+
92104
#[AsTask(description: 'Clears the application cache', namespace: 'app', aliases: ['cache-clear'])]
93105
function cache_clear(bool $warm = true): void
94106
{

0 commit comments

Comments
 (0)