Skip to content

Commit cfd2352

Browse files
committed
Added AssetPackageController::actionAddUpdateCommand()
1 parent e14172c commit cfd2352

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/console/AssetPackageController.php

+7
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ public function actionUpdateList($file = STDIN)
6363
echo "\n";
6464
}
6565

66+
public function actionAddUpdateCommand($type, $name)
67+
{
68+
$package = new AssetPackage($type, $name);
69+
Yii::$app->queue->push(Yii::createObject(PackageUpdateCommand::class, [$package]));
70+
echo Console::renderColoredString("%GAdded%N $type/$name%n\n");
71+
}
72+
6673
public function actionUpdateAll()
6774
{
6875
$this->actionUpdateList(Yii::getAlias('@hiqdev/assetpackagist/config/packages.list'));

0 commit comments

Comments
 (0)