Update command usage syntax in CacheCommand, PPOBCommand, and ProdukCommand for consistency
This commit is contained in:
@@ -11,7 +11,7 @@ use Webapp\Data\Cache;
|
|||||||
/**
|
/**
|
||||||
* Generate all js app cache for all user
|
* 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
|
* @param array<string,mixed> $config From .runway-config.json
|
||||||
*/
|
*/
|
||||||
public function __construct(array $config) {
|
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');
|
$asset = require($this->projectRoot . '/app/config/asset.php');
|
||||||
|
|
||||||
$cache = new Cache($app);
|
$cache = new Cache($app);
|
||||||
|
$cache->set_dev($config->env() === 'development');
|
||||||
$cache->set_asset($asset);
|
$cache->set_asset($asset);
|
||||||
$ares = $cache->Make_Cache();
|
$ares = $cache->Make_Cache();
|
||||||
if (is_array($ares)) $io->white("Processed of {$ares['user_count']} user.", true);
|
if (is_array($ares)) $io->white("Processed of {$ares['user_count']} user.", true);
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ use flight\commands\AbstractBaseCommand;
|
|||||||
/**
|
/**
|
||||||
* Check Status of PPOB Transaction from Server
|
* 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
|
* @param array<string,mixed> $config From .runway-config.json
|
||||||
*/
|
*/
|
||||||
public function __construct(array $config) {
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ use flight\commands\AbstractBaseCommand;
|
|||||||
/**
|
/**
|
||||||
* Generate join all product parameter on single table
|
* 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
|
* @param array<string,mixed> $config From .runway-config.json
|
||||||
*/
|
*/
|
||||||
public function __construct(array $config) {
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user