cisco / elsy

An opinionated, multi-language, build tool based on Docker and Docker Compose
Apache License 2.0
79 stars 22 forks source link

`lc` should abort if `lc.yml` is not present, or if `project_name` is not properly defined #71

Open joeygibson opened 7 years ago

joeygibson commented 7 years ago

Currently, if there is no lc.yml present, lc will continue working. It should stop dead in its tracks.

Also, project_name needs to be defined, either through lc.yml, or from the command line. Not having it screws up docker network creation between local and Jenkins.

therishidesai commented 6 years ago

In the LoadConfigFile Function, if the lc.yml file is not found it returns nil. I don't know if halting the program there is the best way to solve this since wouldn't that prevent the creation of an lc.yml file. I might be miss understanding something. https://github.com/cisco/elsy/blob/000e7dba05d45259278e89806cd5608289dfa687/main/config-file.go#L28