Skip to content
Open
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
9 changes: 7 additions & 2 deletions src/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ public function handle(): void

View::render('components.new-line');

$this->addEnvKeys('.env');
$optionalEnv = $this->option('env') ?: '';
$envFile = '.env';
if ($optionalEnv) {
$envFile .= '.'.$optionalEnv;
}
$this->addEnvKeys($envFile);
$this->addEnvKeys('.env.example');

View::render('components.new-line');
Expand All @@ -47,7 +52,7 @@ public function handle(): void

View::render('components.badge', [
'type' => 'INFO',
'content' => 'Open your .env and add your OpenAI API key and organization id.',
'content' => 'Open your '.$envFile.' and add your OpenAI API key and organization id.',
]);

if ($wantsToSupport) {
Expand Down