2022-07-08 02:27:06 +00:00
|
|
|
<?php
|
2022-07-14 02:04:31 +00:00
|
|
|
|
2022-08-02 01:32:46 +00:00
|
|
|
namespace Appwrite\CLI;
|
2022-07-08 02:27:06 +00:00
|
|
|
|
2022-07-13 06:26:22 +00:00
|
|
|
use Utopia\Platform\Service;
|
2022-08-02 01:32:46 +00:00
|
|
|
use Appwrite\CLI\Tasks\Doctor;
|
|
|
|
|
use Appwrite\CLI\Tasks\Install;
|
|
|
|
|
use Appwrite\CLI\Tasks\Maintenance;
|
|
|
|
|
use Appwrite\CLI\Tasks\Migrate;
|
|
|
|
|
use Appwrite\CLI\Tasks\SDKs;
|
|
|
|
|
use Appwrite\CLI\Tasks\Specs;
|
|
|
|
|
use Appwrite\CLI\Tasks\SSL;
|
|
|
|
|
use Appwrite\CLI\Tasks\Usage;
|
|
|
|
|
use Appwrite\CLI\Tasks\Vars;
|
|
|
|
|
use Appwrite\CLI\Tasks\Version;
|
2022-11-13 08:36:31 +00:00
|
|
|
use VolumeSync;
|
2022-07-08 02:27:06 +00:00
|
|
|
|
2022-08-02 01:32:46 +00:00
|
|
|
class TasksService extends Service
|
2022-07-14 02:04:31 +00:00
|
|
|
{
|
2022-07-13 06:26:22 +00:00
|
|
|
public function __construct()
|
2022-07-08 02:27:06 +00:00
|
|
|
{
|
2022-07-13 06:26:22 +00:00
|
|
|
$this->type = self::TYPE_CLI;
|
2022-07-13 07:02:55 +00:00
|
|
|
$this
|
2022-08-02 01:58:36 +00:00
|
|
|
->addAction(Version::getName(), new Version())
|
|
|
|
|
->addAction(Usage::getName(), new Usage())
|
|
|
|
|
->addAction(Vars::getName(), new Vars())
|
|
|
|
|
->addAction(SSL::getName(), new SSL())
|
|
|
|
|
->addAction(Doctor::getName(), new Doctor())
|
|
|
|
|
->addAction(Install::getName(), new Install())
|
|
|
|
|
->addAction(Maintenance::getName(), new Maintenance())
|
|
|
|
|
->addAction(Migrate::getName(), new Migrate())
|
|
|
|
|
->addAction(SDKs::getName(), new SDKs())
|
2022-11-13 08:36:31 +00:00
|
|
|
->addAction(VolumeSync::getName(), new VolumeSync())
|
2022-08-02 01:58:36 +00:00
|
|
|
->addAction(Specs::getName(), new Specs());
|
2022-07-08 02:27:06 +00:00
|
|
|
}
|
|
|
|
|
}
|