Skip to content

Commit 0a438aa

Browse files
author
Fatih Aydın
committed
feat: Add dynamic funding links to InstallCommand
1 parent 841d60a commit 0a438aa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Commands/InstallCommand.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ class InstallCommand extends Command
1515
'Gemini PHP Docs' => 'https://github.com/google-gemini-php/client#readme',
1616
];
1717

18+
private const FUNDING_LINKS = [
19+
'Sponsor Fatih' => 'https://github.com/sponsors/aydinfatih',
20+
];
21+
1822
protected $signature = 'gemini:install';
1923

2024
protected $description = 'Prepares the Gemini client for use.';
@@ -127,6 +131,7 @@ private function showLinks(): void
127131
{
128132
$links = [
129133
...self::LINKS,
134+
...rand(0, 1) ? self::FUNDING_LINKS : array_reverse(self::FUNDING_LINKS, true),
130135
];
131136

132137
foreach ($links as $message => $link) {

0 commit comments

Comments
 (0)