Skip to content
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

Fix WriteConfig (#430, #433) #936

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yann-soubeyrand
Copy link

@yann-soubeyrand yann-soubeyrand commented Jul 14, 2020

Hi,

This PR makes WriteConfig work when the config file doesn't exist yet. In addition, it allows SafeWriteConfig to write the config to an explicitly set config file instead of the default config file. It also sets the config file used so that error messages can make use of it in case of error.

Fixes: #430
Fixes: #433

@CLAassistant
Copy link

CLAassistant commented Jul 14, 2020

CLA assistant check
All committers have signed the CLA.

@mniak
Copy link

mniak commented Feb 11, 2021

Please, I need this so much!

@gsovereignty
Copy link

Ugh still not merged. Any reason?

@yann-soubeyrand
Copy link
Author

Hello, is there something I can do to get this PR merged?

@yann-soubeyrand
Copy link
Author

Ping?

@grousk
Copy link

grousk commented May 25, 2024

@spf13 we need this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WriteConfig fails to write if file does not exist Simple way to initialize a config file
5 participants