Skip to content

Commit 387ea62

Browse files
committed
wip
1 parent 3edec79 commit 387ea62

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Console/InstallCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,11 @@ protected function selectAiGuidelines(): Collection
287287
return collect(multiselect(
288288
label: 'Which AI guidelines do you want to install?',
289289
// @phpstan-ignore-next-line
290-
options: $options->mapWithKeys(fn (array $guideline, string $name) => [$name => "{$name} (~{$guideline['tokens']} tokens) {$guideline['description']}"]),
290+
options: $options->mapWithKeys(function (array $guideline, string $name) {
291+
$humanName = str_replace('/core', '', $name);
292+
293+
return [$name => "{$humanName} (~{$guideline['tokens']} tokens) {$guideline['description']}"];
294+
}),
291295
default: $defaults,
292296
scroll: 10,
293297
hint: 'You can add or remove them later by running this command again',

0 commit comments

Comments
 (0)