27 lines
596 B
PHP
27 lines
596 B
PHP
<?php
|
|
|
|
namespace MintyPHP\Console\Commands\Module;
|
|
|
|
use MintyPHP\Console\Command;
|
|
|
|
final class AssetsSyncCommand extends Command
|
|
{
|
|
public function name(): string
|
|
{
|
|
return 'module:assets-sync';
|
|
}
|
|
|
|
public function description(): string
|
|
{
|
|
return 'Publish module web assets to web/modules/';
|
|
}
|
|
|
|
public function execute(array $args, array $options): int
|
|
{
|
|
require_once __DIR__ . '/../../../../bin/module-cli-bootstrap.php';
|
|
require_once __DIR__ . '/../../../../bin/module-assets-sync.php';
|
|
|
|
return moduleAssetsSyncRun();
|
|
}
|
|
}
|