Update command usage syntax in CacheCommand, PPOBCommand, and ProdukCommand for consistency

This commit is contained in:
2026-11-03 09:48:16 +07:00
parent 0db288c404
commit 03e281d671
3 changed files with 7 additions and 6 deletions
+3 -2
View File
@@ -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<string,mixed> $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);
+2 -2
View File
@@ -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<string,mixed> $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);
}
/**
+2 -2
View File
@@ -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<string,mixed> $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);
}
/**