kool create command#198
Conversation
Codecov Report
@@ Coverage Diff @@
## master #198 +/- ##
==========================================
- Coverage 89.22% 88.94% -0.28%
==========================================
Files 52 53 +1
Lines 1652 1710 +58
==========================================
+ Hits 1474 1521 +47
- Misses 152 160 +8
- Partials 26 29 +3
Continue to review full report at Codecov.
|
|
@leandroncbrito after you create, it's already having the kool files there? or you still need to I think we can safely create and init. |
I like the idea too. The only question I have: should we add an option for creating the project only, without copying the preset files? |
|
Yeah but i think it makes sense creating it as default... maybe a |
No need for this flag IMO. Design wise, we want people to use our environment. Even if they do not want to, having the files installed is not a big deal - no issues should arise from that. |
|
Yeah, I like the idea. |
There was a problem hiding this comment.
Nice! I would add just one test case to the create command. If we add a test case and mock the preset fake parser to return true on the method Exists (set MockExists to true), then we can improve the test coverage. This way I guess all checks for this PR will pass.
https://codecov.io/gh/kool-dev/kool/src/create-command/cmd/create.go

danielsuguimoto
left a comment
There was a problem hiding this comment.
@leandroncbrito sorry, I was almost forgetting about the docs. Please, run kool run make-docs to generate the docs markdown to this new command, then I think it's ready to go.
done |
|
LGTM! What do you think @dbpolito @fabriciojs ? |
fabriciojs
left a comment
There was a problem hiding this comment.
@leandroncbrito looking great! thanks for all the work on this!
I left a handful of comments, some we might leave for a feature iteration, others we may discuss further. Let me know what you think!
#17
New command "create"
Parameters:
Ex: kool create laravel my-app
New issue improvement:
Instead of entering the preset name, we might show the preset menu and let the user choose.