mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Merge pull request #11001 from appwrite/update-sdks-console
This commit is contained in:
commit
309fde38f7
2 changed files with 3 additions and 3 deletions
|
|
@ -55,7 +55,7 @@ class SDKs extends Action
|
||||||
public function action(?string $selectedPlatform, ?string $selectedSDK, ?string $version, ?string $git, ?string $production, ?string $message, ?string $release, ?string $commit, ?string $sdks): void
|
public function action(?string $selectedPlatform, ?string $selectedSDK, ?string $version, ?string $git, ?string $production, ?string $message, ?string $release, ?string $commit, ?string $sdks): void
|
||||||
{
|
{
|
||||||
if (!$sdks) {
|
if (!$sdks) {
|
||||||
$selectedPlatform ??= Console::confirm('Choose Platform ("' . APP_SDK_PLATFORM_CLIENT . '", "' . APP_SDK_PLATFORM_SERVER . '", "' . APP_SDK_PLATFORM_CONSOLE . '" or "*" for all):');
|
$selectedPlatform ??= Console::confirm('Choose Platform ("' . implode('", "', Specs::getPlatforms()) . '" or "*" for all):');
|
||||||
$selectedSDK ??= \strtolower(Console::confirm('Choose SDK ("*" for all):'));
|
$selectedSDK ??= \strtolower(Console::confirm('Choose SDK ("*" for all):'));
|
||||||
} else {
|
} else {
|
||||||
$sdks = explode(',', $sdks);
|
$sdks = explode(',', $sdks);
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ class Specs extends Action
|
||||||
*
|
*
|
||||||
* @return array<string>
|
* @return array<string>
|
||||||
*/
|
*/
|
||||||
protected function getPlatforms(): array
|
public static function getPlatforms(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
APP_SDK_PLATFORM_CLIENT,
|
APP_SDK_PLATFORM_CLIENT,
|
||||||
|
|
@ -239,7 +239,7 @@ class Specs extends Action
|
||||||
App::setResource('dbForPlatform', fn () => new Database(new MySQL(''), new Cache(new None())));
|
App::setResource('dbForPlatform', fn () => new Database(new MySQL(''), new Cache(new None())));
|
||||||
App::setResource('dbForProject', fn () => new Database(new MySQL(''), new Cache(new None())));
|
App::setResource('dbForProject', fn () => new Database(new MySQL(''), new Cache(new None())));
|
||||||
|
|
||||||
$platforms = $this->getPlatforms();
|
$platforms = self::getPlatforms();
|
||||||
$authCounts = $this->getAuthCounts();
|
$authCounts = $this->getAuthCounts();
|
||||||
$keys = $this->getKeys();
|
$keys = $this->getKeys();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue