MohamedBeydoun / atlas

An express-typescript code generator
Apache License 2.0
6 stars 0 forks source link

Resource generation with no project #29

Closed AsFal closed 4 years ago

AsFal commented 4 years ago

When I generate a project with the atlas generate controller command, I would expect the cli tool to display a message with the following format.

Could not be created because the curent directory is not an atlas project. You can create an atlas project with the following command: `atlas create project_name`
MohamedBeydoun commented 4 years ago

Would a .atlas file in the root directory be ok? That could be our reference for knowing if the project is "atlas" generated or not

AsFal commented 4 years ago

Yes. It could be used as configuration file for the cli for future features as well.

MohamedBeydoun commented 4 years ago

Possible implementation:

MohamedBeydoun commented 4 years ago

https://stackoverflow.com/questions/51050854/find-file-with-name-recursively-in-parent-directories-in-go

prj.Current should be changed to perform a search similar to this one for a .atlas file