From 8118b3a064ef62f005dbbb04fbdbb57654d681a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFck=20Piera?= Date: Thu, 26 Mar 2026 23:40:05 +0100 Subject: [PATCH] Add update castor task --- castor.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/castor.php b/castor.php index 2eddb99..84e8fde 100644 --- a/castor.php +++ b/castor.php @@ -89,6 +89,18 @@ function install(): void qa\install(); } +#[AsTask(description: 'Update dependencies')] +function update(bool $withTools = false): void +{ + io()->title('Updating dependencies...'); + + // docker_compose_run('composer update -o'); + + if ($withTools) { + qa\update(); + } +} + #[AsTask(description: 'Clears the application cache', namespace: 'app', aliases: ['cache-clear'])] function cache_clear(bool $warm = true): void {