Skip to content

Commit 043bfae

Browse files
committed
feat: use directory name as default project name
1 parent 3eb71b9 commit 043bfae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Command/Project/InitializeProjectCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ private function determineName(InputInterface $input, OutputStyle $output): stri
160160
if (empty($name) && !$input->isInteractive()) {
161161
throw new InvalidArgumentException('You must use the "--name" option when running in non-interactive mode');
162162
} elseif (empty($name) && $input->isInteractive()) {
163-
$name = $output->askSlug('What is the name of the project');
163+
$name = $output->askSlug('What is the name of the project', basename(getcwd() ?: '') ?: null);
164164
}
165165

166166
return (string) $name;

0 commit comments

Comments
 (0)