From 03e281d6718596803f3666ad6d111d42e03080de Mon Sep 17 00:00:00 2001 From: Siau Pheng Date: Tue, 3 Nov 2026 09:48:16 +0700 Subject: [PATCH] Update command usage syntax in CacheCommand, PPOBCommand, and ProdukCommand for consistency --- app/commands/CacheCommand.php | 5 +++-- app/commands/PPOBCommand.php | 4 ++-- app/commands/ProdukCommand.php | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/commands/CacheCommand.php b/app/commands/CacheCommand.php index cbdd109..c5f9619 100644 --- a/app/commands/CacheCommand.php +++ b/app/commands/CacheCommand.php @@ -11,7 +11,7 @@ use Webapp\Data\Cache; /** * Generate all js app cache for all user * - * Usage: php runway user:cache + * Usage: php runway caches * */ @@ -21,7 +21,7 @@ class CacheCommand extends AbstractBaseCommand { * @param array $config From .runway-config.json */ public function __construct(array $config) { - parent::__construct('user:cache', 'Generate all js app cache for all user', $config); + parent::__construct('caches', 'Generate all js app cache for all user', $config); } /** @@ -35,6 +35,7 @@ class CacheCommand extends AbstractBaseCommand { $asset = require($this->projectRoot . '/app/config/asset.php'); $cache = new Cache($app); + $cache->set_dev($config->env() === 'development'); $cache->set_asset($asset); $ares = $cache->Make_Cache(); if (is_array($ares)) $io->white("Processed of {$ares['user_count']} user.", true); diff --git a/app/commands/PPOBCommand.php b/app/commands/PPOBCommand.php index abbaee0..e382512 100644 --- a/app/commands/PPOBCommand.php +++ b/app/commands/PPOBCommand.php @@ -11,7 +11,7 @@ use flight\commands\AbstractBaseCommand; /** * Check Status of PPOB Transaction from Server * - * Usage: php runway ppob:check + * Usage: php runway ppob-check * */ @@ -21,7 +21,7 @@ class PPOBCommand extends AbstractBaseCommand { * @param array $config From .runway-config.json */ public function __construct(array $config) { - parent::__construct('ppob:check', 'Check Status of PPOB Transaction from Server', $config); + parent::__construct('ppob-check', 'Check Status of PPOB Transaction from Server', $config); } /** diff --git a/app/commands/ProdukCommand.php b/app/commands/ProdukCommand.php index 2fe65dd..048eb8d 100644 --- a/app/commands/ProdukCommand.php +++ b/app/commands/ProdukCommand.php @@ -11,7 +11,7 @@ use flight\commands\AbstractBaseCommand; /** * Generate join all product parameter on single table * - * Usage: php runway produk:join + * Usage: php runway produk-join * */ @@ -21,7 +21,7 @@ class ProdukCommand extends AbstractBaseCommand { * @param array $config From .runway-config.json */ public function __construct(array $config) { - parent::__construct('produk:join', 'Generate join all product parameter on single table', $config); + parent::__construct('produk-join', 'Generate join all product parameter on single table', $config); } /**