Skip to content

Commit

Permalink
fix: filter out providers already in services config
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbutcher committed Oct 9, 2023
1 parent 6ad6d47 commit b4d09d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/CreateProviderCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected function promptForMissingArgumentsUsing(): array
'provider' => fn () => search(
label: 'Which provider would you like to create a configuration for?',
options: fn (string $search) => array_values(array_filter(
array_diff(Providers::all(), config('socialstream.providers')),
array_diff(Providers::all(), config('socialstream.providers'), array_keys(config('services'))),
fn ($choice) => str_contains(strtolower($choice), strtolower($search))
)),
placeholder: 'Search...',
Expand Down

0 comments on commit b4d09d5

Please sign in to comment.