mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 17:35:36 +08:00
Add download options for build:libs command
This commit is contained in:
@@ -4,6 +4,7 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace StaticPHP\Command;
|
namespace StaticPHP\Command;
|
||||||
|
|
||||||
|
use StaticPHP\Artifact\DownloaderOptions;
|
||||||
use StaticPHP\Package\PackageInstaller;
|
use StaticPHP\Package\PackageInstaller;
|
||||||
use StaticPHP\Util\V2CompatLayer;
|
use StaticPHP\Util\V2CompatLayer;
|
||||||
use Symfony\Component\Console\Attribute\AsCommand;
|
use Symfony\Component\Console\Attribute\AsCommand;
|
||||||
@@ -23,6 +24,8 @@ class BuildLibsCommand extends BaseCommand
|
|||||||
new InputOption('no-download', null, null, 'Skip downloading artifacts (use existing cached files)'),
|
new InputOption('no-download', null, null, 'Skip downloading artifacts (use existing cached files)'),
|
||||||
...V2CompatLayer::getLegacyBuildOptions(),
|
...V2CompatLayer::getLegacyBuildOptions(),
|
||||||
]);
|
]);
|
||||||
|
// Downloader options (with 'dl-' prefix to avoid conflicts)
|
||||||
|
$this->getDefinition()->addOptions(DownloaderOptions::getConsoleOptions('dl'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function handle(): int
|
public function handle(): int
|
||||||
|
|||||||
Reference in New Issue
Block a user