Skip to content

Commit 8158a49

Browse files
committed
feat: add support for console apps
1 parent 3e7cb37 commit 8158a49

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"require": {
2424
"ext-json": "*",
2525
"leafs/fs": "^4.1",
26-
"leafs/sprout": "^0.7.0",
26+
"leafs/sprout": "*",
2727
"psy/psysh": "*"
2828
},
2929
"bin": [

src/CreateCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ protected function handle(): int
9191
['title' => 'Basic Leaf app', 'value' => 'basic'],
9292
['title' => 'Full-stack MVC app', 'value' => 'mvc'],
9393
['title' => 'Leaf MVC API app', 'value' => 'api'],
94-
['title' => 'Console app', 'value' => 'console'],
94+
['title' => 'Console app via Seedling', 'value' => 'console'],
9595
],
9696
],
9797
]);
@@ -126,7 +126,7 @@ protected function handle(): int
126126
$commands[] = "cd \"$directory\"";
127127
$commands[] = 'composer install --ansi';
128128
} else if ($this->projectType === 'console') {
129-
$commands[] = "composer create-project leafs/sprout-app \"$directory\" --ansi";
129+
$commands[] = "composer create-project leafs/seedling \"$directory\" --ansi";
130130
$commands[] = "cd \"$directory\"";
131131
} else {
132132
$commands[] = "composer create-project leafs/mvc \"$directory\" --ansi";
@@ -152,7 +152,7 @@ protected function handle(): int
152152
$this->writeln("\n🚀 Successfully created project " . basename($directory) . "\n");
153153
$this->writeln('👉 Get started with the following commands:');
154154
$this->writeln("\n cd " . basename($directory));
155-
$this->writeln(" php ./bin/" . basename($directory));
155+
$this->writeln(" php leaf greet");
156156

157157
$this->writeln("\n🍁 Happy gardening!\n");
158158

0 commit comments

Comments
 (0)