Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/Appwrite/Platform/Tasks/SDKs.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ public static function getName(): string
return 'sdks';
}

public static function getPlatforms(): array
{
return Specs::getPlatforms();
}

public function __construct()
{
$this
Expand All @@ -55,7 +60,7 @@ public function __construct()
public function action(?string $selectedPlatform, ?string $selectedSDK, ?string $version, ?string $git, ?string $production, ?string $message, ?string $release, ?string $commit, ?string $sdks): void
{
if (!$sdks) {
$selectedPlatform ??= Console::confirm('Choose Platform ("' . implode('", "', Specs::getPlatforms()) . '" or "*" for all):');
$selectedPlatform ??= Console::confirm('Choose Platform ("' . implode('", "', static::getPlatforms()) . '" or "*" for all):');
$selectedSDK ??= \strtolower(Console::confirm('Choose SDK ("*" for all):'));
} else {
$sdks = explode(',', $sdks);
Expand Down
2 changes: 1 addition & 1 deletion src/Appwrite/Platform/Tasks/Specs.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public function action(string $version, string $mode): void
App::setResource('dbForPlatform', fn () => new Database(new MySQL(''), new Cache(new None())));
App::setResource('dbForProject', fn () => new Database(new MySQL(''), new Cache(new None())));

$platforms = self::getPlatforms();
$platforms = static::getPlatforms();
$authCounts = $this->getAuthCounts();
$keys = $this->getKeys();

Expand Down
Loading