-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config file support #20
Comments
Hi, Nathan, I sent you a pull request with a first stab at config file support a little while ago. It just adds the ability to for green to read $HOME/.green if it exists, or $GREEN_CONF if it’s set in the environment, or -c/—config if specified on the command line. The update doesn’t include any attempt to actually use any configuration data. Other parts of the program can get the configuration by doing from green import config cfg = config.get_config() This will return a ConfigParser.ConfigParser object. So if the config contained, say: [green] the call cfg.get(‘green’, ‘output_format’) would return ‘pytest’. I’ll be interested to hear what you think… Tom On 2014 Jul 09, at 14:18 , Nathan Stocks notifications@github.com wrote:
|
Done and released in version 1.1.0! |
Woohoo! Congratulations, Nathan! On 2014 Jul 17, at 19:53 , Nathan Stocks notifications@github.com wrote:
|
Thanks! And congratulations to you for getting this feature started! |
It would be nice to support a .green config file.
The text was updated successfully, but these errors were encountered: