|
|
|
|
@ -121,169 +121,169 @@ use OCP\IConfig; |
|
|
|
|
use OCP\Server; |
|
|
|
|
use Stecman\Component\Symfony\Console\BashCompletion\CompletionCommand; |
|
|
|
|
|
|
|
|
|
$application->add(new CompletionCommand()); |
|
|
|
|
$application->add(Server::get(Status::class)); |
|
|
|
|
$application->add(Server::get(Check::class)); |
|
|
|
|
$application->add(Server::get(CreateJs::class)); |
|
|
|
|
$application->add(Server::get(SignApp::class)); |
|
|
|
|
$application->add(Server::get(SignCore::class)); |
|
|
|
|
$application->add(Server::get(CheckApp::class)); |
|
|
|
|
$application->add(Server::get(CheckCore::class)); |
|
|
|
|
$application->add(Server::get(ListRoutes::class)); |
|
|
|
|
$application->add(Server::get(MatchRoute::class)); |
|
|
|
|
$application->addCommand(new CompletionCommand()); |
|
|
|
|
$application->addCommand(Server::get(Status::class)); |
|
|
|
|
$application->addCommand(Server::get(Check::class)); |
|
|
|
|
$application->addCommand(Server::get(CreateJs::class)); |
|
|
|
|
$application->addCommand(Server::get(SignApp::class)); |
|
|
|
|
$application->addCommand(Server::get(SignCore::class)); |
|
|
|
|
$application->addCommand(Server::get(CheckApp::class)); |
|
|
|
|
$application->addCommand(Server::get(CheckCore::class)); |
|
|
|
|
$application->addCommand(Server::get(ListRoutes::class)); |
|
|
|
|
$application->addCommand(Server::get(MatchRoute::class)); |
|
|
|
|
|
|
|
|
|
$config = Server::get(IConfig::class); |
|
|
|
|
|
|
|
|
|
if ($config->getSystemValueBool('installed', false)) { |
|
|
|
|
$application->add(Server::get(Disable::class)); |
|
|
|
|
$application->add(Server::get(Enable::class)); |
|
|
|
|
$application->add(Server::get(Install::class)); |
|
|
|
|
$application->add(Server::get(GetPath::class)); |
|
|
|
|
$application->add(Server::get(ListApps::class)); |
|
|
|
|
$application->add(Server::get(Remove::class)); |
|
|
|
|
$application->add(Server::get(Update::class)); |
|
|
|
|
$application->addCommand(Server::get(Disable::class)); |
|
|
|
|
$application->addCommand(Server::get(Enable::class)); |
|
|
|
|
$application->addCommand(Server::get(Install::class)); |
|
|
|
|
$application->addCommand(Server::get(GetPath::class)); |
|
|
|
|
$application->addCommand(Server::get(ListApps::class)); |
|
|
|
|
$application->addCommand(Server::get(Remove::class)); |
|
|
|
|
$application->addCommand(Server::get(Update::class)); |
|
|
|
|
|
|
|
|
|
$application->add(Server::get(Cleanup::class)); |
|
|
|
|
$application->add(Server::get(Enforce::class)); |
|
|
|
|
$application->add(Server::get(Command\TwoFactorAuth\Enable::class)); |
|
|
|
|
$application->add(Server::get(Command\TwoFactorAuth\Disable::class)); |
|
|
|
|
$application->add(Server::get(State::class)); |
|
|
|
|
$application->addCommand(Server::get(Cleanup::class)); |
|
|
|
|
$application->addCommand(Server::get(Enforce::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\TwoFactorAuth\Enable::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\TwoFactorAuth\Disable::class)); |
|
|
|
|
$application->addCommand(Server::get(State::class)); |
|
|
|
|
|
|
|
|
|
$application->add(Server::get(Mode::class)); |
|
|
|
|
$application->add(Server::get(Job::class)); |
|
|
|
|
$application->add(Server::get(ListCommand::class)); |
|
|
|
|
$application->add(Server::get(Delete::class)); |
|
|
|
|
$application->add(Server::get(JobWorker::class)); |
|
|
|
|
$application->add(Server::get(RunningJobs::class)); |
|
|
|
|
$application->add(Server::get(JobsHistory::class)); |
|
|
|
|
$application->addCommand(Server::get(Mode::class)); |
|
|
|
|
$application->addCommand(Server::get(Job::class)); |
|
|
|
|
$application->addCommand(Server::get(ListCommand::class)); |
|
|
|
|
$application->addCommand(Server::get(Delete::class)); |
|
|
|
|
$application->addCommand(Server::get(JobWorker::class)); |
|
|
|
|
$application->addCommand(Server::get(RunningJobs::class)); |
|
|
|
|
$application->addCommand(Server::get(JobsHistory::class)); |
|
|
|
|
|
|
|
|
|
$application->add(Server::get(Test::class)); |
|
|
|
|
$application->addCommand(Server::get(Test::class)); |
|
|
|
|
|
|
|
|
|
$application->add(Server::get(DeleteConfig::class)); |
|
|
|
|
$application->add(Server::get(GetConfig::class)); |
|
|
|
|
$application->add(Server::get(SetConfig::class)); |
|
|
|
|
$application->add(Server::get(Import::class)); |
|
|
|
|
$application->add(Server::get(ListConfigs::class)); |
|
|
|
|
$application->add(Server::get(Preset::class)); |
|
|
|
|
$application->add(Server::get(Command\Config\System\DeleteConfig::class)); |
|
|
|
|
$application->add(Server::get(Command\Config\System\GetConfig::class)); |
|
|
|
|
$application->add(Server::get(Command\Config\System\SetConfig::class)); |
|
|
|
|
$application->addCommand(Server::get(DeleteConfig::class)); |
|
|
|
|
$application->addCommand(Server::get(GetConfig::class)); |
|
|
|
|
$application->addCommand(Server::get(SetConfig::class)); |
|
|
|
|
$application->addCommand(Server::get(Import::class)); |
|
|
|
|
$application->addCommand(Server::get(ListConfigs::class)); |
|
|
|
|
$application->addCommand(Server::get(Preset::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\Config\System\DeleteConfig::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\Config\System\GetConfig::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\Config\System\SetConfig::class)); |
|
|
|
|
|
|
|
|
|
$application->add(Server::get(File::class)); |
|
|
|
|
$application->add(Server::get(Space::class)); |
|
|
|
|
$application->add(Server::get(Storage::class)); |
|
|
|
|
$application->add(Server::get(Storages::class)); |
|
|
|
|
$application->addCommand(Server::get(File::class)); |
|
|
|
|
$application->addCommand(Server::get(Space::class)); |
|
|
|
|
$application->addCommand(Server::get(Storage::class)); |
|
|
|
|
$application->addCommand(Server::get(Storages::class)); |
|
|
|
|
|
|
|
|
|
$application->add(Server::get(ConvertType::class)); |
|
|
|
|
$application->add(Server::get(ConvertMysqlToMB4::class)); |
|
|
|
|
$application->add(Server::get(ConvertFilecacheBigInt::class)); |
|
|
|
|
$application->add(Server::get(AddMissingColumns::class)); |
|
|
|
|
$application->add(Server::get(AddMissingIndices::class)); |
|
|
|
|
$application->add(Server::get(AddMissingPrimaryKeys::class)); |
|
|
|
|
$application->add(Server::get(DbInfo::class)); |
|
|
|
|
$application->add(Server::get(DbSize::class)); |
|
|
|
|
$application->add(Server::get(DbIndexUsage::class)); |
|
|
|
|
$application->add(Server::get(DbLocks::class)); |
|
|
|
|
$application->add(Server::get(ExpectedSchema::class)); |
|
|
|
|
$application->add(Server::get(ExportSchema::class)); |
|
|
|
|
$application->addCommand(Server::get(ConvertType::class)); |
|
|
|
|
$application->addCommand(Server::get(ConvertMysqlToMB4::class)); |
|
|
|
|
$application->addCommand(Server::get(ConvertFilecacheBigInt::class)); |
|
|
|
|
$application->addCommand(Server::get(AddMissingColumns::class)); |
|
|
|
|
$application->addCommand(Server::get(AddMissingIndices::class)); |
|
|
|
|
$application->addCommand(Server::get(AddMissingPrimaryKeys::class)); |
|
|
|
|
$application->addCommand(Server::get(DbInfo::class)); |
|
|
|
|
$application->addCommand(Server::get(DbSize::class)); |
|
|
|
|
$application->addCommand(Server::get(DbIndexUsage::class)); |
|
|
|
|
$application->addCommand(Server::get(DbLocks::class)); |
|
|
|
|
$application->addCommand(Server::get(ExpectedSchema::class)); |
|
|
|
|
$application->addCommand(Server::get(ExportSchema::class)); |
|
|
|
|
|
|
|
|
|
$application->add(Server::get(GenerateMetadataCommand::class)); |
|
|
|
|
$application->add(Server::get(PreviewCommand::class)); |
|
|
|
|
$application->addCommand(Server::get(GenerateMetadataCommand::class)); |
|
|
|
|
$application->addCommand(Server::get(PreviewCommand::class)); |
|
|
|
|
if ($config->getSystemValueBool('debug', false)) { |
|
|
|
|
$application->add(Server::get(StatusCommand::class)); |
|
|
|
|
$application->add(Server::get(MigrateCommand::class)); |
|
|
|
|
$application->add(Server::get(GenerateCommand::class)); |
|
|
|
|
$application->add(Server::get(ExecuteCommand::class)); |
|
|
|
|
$application->addCommand(Server::get(StatusCommand::class)); |
|
|
|
|
$application->addCommand(Server::get(MigrateCommand::class)); |
|
|
|
|
$application->addCommand(Server::get(GenerateCommand::class)); |
|
|
|
|
$application->addCommand(Server::get(ExecuteCommand::class)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$application->add(Server::get(Command\Encryption\Disable::class)); |
|
|
|
|
$application->add(Server::get(Command\Encryption\Enable::class)); |
|
|
|
|
$application->add(Server::get(ListModules::class)); |
|
|
|
|
$application->add(Server::get(SetDefaultModule::class)); |
|
|
|
|
$application->add(Server::get(Command\Encryption\Status::class)); |
|
|
|
|
$application->add(Server::get(EncryptAll::class)); |
|
|
|
|
$application->add(Server::get(DecryptAll::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\Encryption\Disable::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\Encryption\Enable::class)); |
|
|
|
|
$application->addCommand(Server::get(ListModules::class)); |
|
|
|
|
$application->addCommand(Server::get(SetDefaultModule::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\Encryption\Status::class)); |
|
|
|
|
$application->addCommand(Server::get(EncryptAll::class)); |
|
|
|
|
$application->addCommand(Server::get(DecryptAll::class)); |
|
|
|
|
|
|
|
|
|
$application->add(Server::get(Manage::class)); |
|
|
|
|
$application->add(Server::get(Command\Log\File::class)); |
|
|
|
|
$application->addCommand(Server::get(Manage::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\Log\File::class)); |
|
|
|
|
|
|
|
|
|
$application->add(Server::get(ChangeKeyStorageRoot::class)); |
|
|
|
|
$application->add(Server::get(ShowKeyStorageRoot::class)); |
|
|
|
|
$application->add(Server::get(MigrateKeyStorage::class)); |
|
|
|
|
$application->addCommand(Server::get(ChangeKeyStorageRoot::class)); |
|
|
|
|
$application->addCommand(Server::get(ShowKeyStorageRoot::class)); |
|
|
|
|
$application->addCommand(Server::get(MigrateKeyStorage::class)); |
|
|
|
|
|
|
|
|
|
$application->add(Server::get(DataFingerprint::class)); |
|
|
|
|
$application->add(Server::get(UpdateDB::class)); |
|
|
|
|
$application->add(Server::get(UpdateJS::class)); |
|
|
|
|
$application->add(Server::get(Command\Maintenance\Mode::class)); |
|
|
|
|
$application->add(Server::get(UpdateHtaccess::class)); |
|
|
|
|
$application->add(Server::get(UpdateTheme::class)); |
|
|
|
|
$application->addCommand(Server::get(DataFingerprint::class)); |
|
|
|
|
$application->addCommand(Server::get(UpdateDB::class)); |
|
|
|
|
$application->addCommand(Server::get(UpdateJS::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\Maintenance\Mode::class)); |
|
|
|
|
$application->addCommand(Server::get(UpdateHtaccess::class)); |
|
|
|
|
$application->addCommand(Server::get(UpdateTheme::class)); |
|
|
|
|
|
|
|
|
|
$application->add(Server::get(Upgrade::class)); |
|
|
|
|
$application->add(Server::get(Repair::class)); |
|
|
|
|
$application->add(Server::get(RepairShareOwnership::class)); |
|
|
|
|
$application->addCommand(Server::get(Upgrade::class)); |
|
|
|
|
$application->addCommand(Server::get(Repair::class)); |
|
|
|
|
$application->addCommand(Server::get(RepairShareOwnership::class)); |
|
|
|
|
|
|
|
|
|
$application->add(Server::get(Command\Preview\Cleanup::class)); |
|
|
|
|
$application->add(Server::get(Generate::class)); |
|
|
|
|
$application->add(Server::get(ResetRenderedTexts::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\Preview\Cleanup::class)); |
|
|
|
|
$application->addCommand(Server::get(Generate::class)); |
|
|
|
|
$application->addCommand(Server::get(ResetRenderedTexts::class)); |
|
|
|
|
|
|
|
|
|
$application->add(Server::get(Add::class)); |
|
|
|
|
$application->add(Server::get(Command\User\Delete::class)); |
|
|
|
|
$application->add(Server::get(Command\User\Disable::class)); |
|
|
|
|
$application->add(Server::get(Command\User\Enable::class)); |
|
|
|
|
$application->add(Server::get(LastSeen::class)); |
|
|
|
|
$application->add(Server::get(Report::class)); |
|
|
|
|
$application->add(Server::get(ResetPassword::class)); |
|
|
|
|
$application->add(Server::get(Setting::class)); |
|
|
|
|
$application->add(Server::get(Profile::class)); |
|
|
|
|
$application->add(Server::get(Command\User\ListCommand::class)); |
|
|
|
|
$application->add(Server::get(ClearGeneratedAvatarCacheCommand::class)); |
|
|
|
|
$application->add(Server::get(Info::class)); |
|
|
|
|
$application->add(Server::get(SyncAccountDataCommand::class)); |
|
|
|
|
$application->add(Server::get(Command\User\AuthTokens\Add::class)); |
|
|
|
|
$application->add(Server::get(Command\User\AuthTokens\ListCommand::class)); |
|
|
|
|
$application->add(Server::get(Command\User\AuthTokens\Delete::class)); |
|
|
|
|
$application->add(Server::get(Verify::class)); |
|
|
|
|
$application->add(Server::get(Welcome::class)); |
|
|
|
|
$application->addCommand(Server::get(Add::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\User\Delete::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\User\Disable::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\User\Enable::class)); |
|
|
|
|
$application->addCommand(Server::get(LastSeen::class)); |
|
|
|
|
$application->addCommand(Server::get(Report::class)); |
|
|
|
|
$application->addCommand(Server::get(ResetPassword::class)); |
|
|
|
|
$application->addCommand(Server::get(Setting::class)); |
|
|
|
|
$application->addCommand(Server::get(Profile::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\User\ListCommand::class)); |
|
|
|
|
$application->addCommand(Server::get(ClearGeneratedAvatarCacheCommand::class)); |
|
|
|
|
$application->addCommand(Server::get(Info::class)); |
|
|
|
|
$application->addCommand(Server::get(SyncAccountDataCommand::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\User\AuthTokens\Add::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\User\AuthTokens\ListCommand::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\User\AuthTokens\Delete::class)); |
|
|
|
|
$application->addCommand(Server::get(Verify::class)); |
|
|
|
|
$application->addCommand(Server::get(Welcome::class)); |
|
|
|
|
|
|
|
|
|
$application->add(Server::get(Command\Group\Add::class)); |
|
|
|
|
$application->add(Server::get(Command\Group\Delete::class)); |
|
|
|
|
$application->add(Server::get(Command\Group\ListCommand::class)); |
|
|
|
|
$application->add(Server::get(AddUser::class)); |
|
|
|
|
$application->add(Server::get(RemoveUser::class)); |
|
|
|
|
$application->add(Server::get(Command\Group\Info::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\Group\Add::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\Group\Delete::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\Group\ListCommand::class)); |
|
|
|
|
$application->addCommand(Server::get(AddUser::class)); |
|
|
|
|
$application->addCommand(Server::get(RemoveUser::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\Group\Info::class)); |
|
|
|
|
|
|
|
|
|
$application->add(Server::get(Command\SystemTag\ListCommand::class)); |
|
|
|
|
$application->add(Server::get(Command\SystemTag\Delete::class)); |
|
|
|
|
$application->add(Server::get(Command\SystemTag\Add::class)); |
|
|
|
|
$application->add(Server::get(Edit::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\SystemTag\ListCommand::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\SystemTag\Delete::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\SystemTag\Add::class)); |
|
|
|
|
$application->addCommand(Server::get(Edit::class)); |
|
|
|
|
|
|
|
|
|
$application->add(Server::get(ListCertificates::class)); |
|
|
|
|
$application->add(Server::get(ExportCertificates::class)); |
|
|
|
|
$application->add(Server::get(ImportCertificate::class)); |
|
|
|
|
$application->add(Server::get(RemoveCertificate::class)); |
|
|
|
|
$application->add(Server::get(BruteforceAttempts::class)); |
|
|
|
|
$application->add(Server::get(BruteforceResetAttempts::class)); |
|
|
|
|
$application->add(Server::get(SetupChecks::class)); |
|
|
|
|
$application->add(Server::get(SnowflakeDecodeId::class)); |
|
|
|
|
$application->add(Server::get(Get::class)); |
|
|
|
|
$application->addCommand(Server::get(ListCertificates::class)); |
|
|
|
|
$application->addCommand(Server::get(ExportCertificates::class)); |
|
|
|
|
$application->addCommand(Server::get(ImportCertificate::class)); |
|
|
|
|
$application->addCommand(Server::get(RemoveCertificate::class)); |
|
|
|
|
$application->addCommand(Server::get(BruteforceAttempts::class)); |
|
|
|
|
$application->addCommand(Server::get(BruteforceResetAttempts::class)); |
|
|
|
|
$application->addCommand(Server::get(SetupChecks::class)); |
|
|
|
|
$application->addCommand(Server::get(SnowflakeDecodeId::class)); |
|
|
|
|
$application->addCommand(Server::get(Get::class)); |
|
|
|
|
|
|
|
|
|
$application->add(Server::get(OCMListKeys::class)); |
|
|
|
|
$application->add(Server::get(OCMStageKey::class)); |
|
|
|
|
$application->add(Server::get(OCMActivateKey::class)); |
|
|
|
|
$application->add(Server::get(OCMRetireKey::class)); |
|
|
|
|
$application->addCommand(Server::get(OCMListKeys::class)); |
|
|
|
|
$application->addCommand(Server::get(OCMStageKey::class)); |
|
|
|
|
$application->addCommand(Server::get(OCMActivateKey::class)); |
|
|
|
|
$application->addCommand(Server::get(OCMRetireKey::class)); |
|
|
|
|
|
|
|
|
|
$application->add(Server::get(GetCommand::class)); |
|
|
|
|
$application->add(Server::get(EnabledCommand::class)); |
|
|
|
|
$application->add(Server::get(Command\TaskProcessing\ListCommand::class)); |
|
|
|
|
$application->add(Server::get(Statistics::class)); |
|
|
|
|
$application->add(Server::get(Command\TaskProcessing\Cleanup::class)); |
|
|
|
|
$application->add(Server::get(WorkerCommand::class)); |
|
|
|
|
$application->addCommand(Server::get(GetCommand::class)); |
|
|
|
|
$application->addCommand(Server::get(EnabledCommand::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\TaskProcessing\ListCommand::class)); |
|
|
|
|
$application->addCommand(Server::get(Statistics::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\TaskProcessing\Cleanup::class)); |
|
|
|
|
$application->addCommand(Server::get(WorkerCommand::class)); |
|
|
|
|
|
|
|
|
|
$application->add(Server::get(RedisCommand::class)); |
|
|
|
|
$application->add(Server::get(DistributedClear::class)); |
|
|
|
|
$application->add(Server::get(DistributedDelete::class)); |
|
|
|
|
$application->add(Server::get(DistributedGet::class)); |
|
|
|
|
$application->add(Server::get(DistributedSet::class)); |
|
|
|
|
$application->addCommand(Server::get(RedisCommand::class)); |
|
|
|
|
$application->addCommand(Server::get(DistributedClear::class)); |
|
|
|
|
$application->addCommand(Server::get(DistributedDelete::class)); |
|
|
|
|
$application->addCommand(Server::get(DistributedGet::class)); |
|
|
|
|
$application->addCommand(Server::get(DistributedSet::class)); |
|
|
|
|
} else { |
|
|
|
|
$application->add(Server::get(Command\Maintenance\Install::class)); |
|
|
|
|
$application->addCommand(Server::get(Command\Maintenance\Install::class)); |
|
|
|
|
} |
|
|
|
|
|