Closed chbrown13 closed 7 years ago
As in unix the precedence should be:
1) read all values from config file and use as default (~/.satellite-populate or /etc/satellite-populate) 2) read all values from environment variables and override default values (click already does it for some vars, we must configure for others) 3) if argument explicit passed it override ENV and config file.
@rochacbruno Do you mean there should there be an environment variable for each option?
@chbrown13 there is already https://github.com/SatelliteQE/satellite-populate/blob/master/satellite_populate/commands.py#L123
@rochacbruno Added some unittests for the config file functionality.
Python 3.x is failing with tempfile.write https://travis-ci.org/SatelliteQE/satellite-populate/jobs/264820612
@rochacbruno First attempt at using a config file to load settings for satellite-populate. Moving to new branch.