mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
* create namespace Aowow to avoid naming conflicts * inclues/libs/ is outside of the Aowow namespace
31 lines
609 B
PHP
31 lines
609 B
PHP
<?php
|
|
|
|
namespace Aowow;
|
|
|
|
if (!defined('AOWOW_REVISION'))
|
|
die('illegal access');
|
|
|
|
if (!CLI)
|
|
die('not in cli mode');
|
|
|
|
|
|
CLISetup::registerSetup("build", new class extends SetupScript
|
|
{
|
|
use TrTemplateFile;
|
|
|
|
protected $info = array(
|
|
'tooltips' => [[], CLISetup::ARGV_PARAM, 'Fills powered tooltips (static/widgets/power.js) with site variables.']
|
|
);
|
|
|
|
protected $fileTemplateSrc = ['power.js.in'];
|
|
protected $fileTemplateDest = ['static/widgets/power.js'];
|
|
|
|
public function generate() : bool
|
|
{
|
|
$this->templateFill();
|
|
return $this->success;
|
|
}
|
|
});
|
|
|
|
?>
|