diff --git a/app/Commands/NewCommand.php b/app/Commands/NewCommand.php index 492a753..0414f16 100644 --- a/app/Commands/NewCommand.php +++ b/app/Commands/NewCommand.php @@ -9,18 +9,21 @@ class NewCommand extends Command { protected $signature = 'new {name}'; - protected $description = 'Create new site'; + protected $description = 'Create new skeleton'; public function handle(Filesystem $filesystem): int { $directory = $this->argument('name'); - if ($filesystem->isDirectory($directory)) { - $this->error($directory.' already existed'); + if ( + $filesystem->isDirectory($directory) + && !$this->confirm("The directory $directory already exists. Do you want to continue?", false) + ) { + $this->info('Aborted!'); return 1; } - $filesystem->copyDirectory(base_path('skeleton'), $sitePath = getcwd().'/'.$directory); + $filesystem->copyDirectory(base_path('skeleton'), $sitePath = getcwd() . '/' . $directory); $this->info("Your blog scaffolded successfully! 👏"); diff --git a/builds/lina b/builds/lina index 5e19e06..f381451 100755 Binary files a/builds/lina and b/builds/lina differ diff --git a/config/app.php b/config/app.php index 14a5b3c..8d4ebca 100644 --- a/config/app.php +++ b/config/app.php @@ -13,7 +13,7 @@ | */ - 'name' => 'Pekyll', + 'name' => 'Lina', /* |-------------------------------------------------------------------------- diff --git a/skeleton/composer.json b/skeleton/composer.json deleted file mode 100644 index 6ae74a2..0000000 --- a/skeleton/composer.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "type": "project", - "require": { - "bangnokia/pekyll": "dev-main" - }, - "scripts": { - "serve": "pekyll serve", - "build": "pekyll build" - }, - "repositories": [ - { - "type": "path", - "url": "/Users/daudau/Code/bangnokia/pekyll" - } - ] -}