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

config: expose ability to write config to arbitrary paths #7174

Merged
merged 5 commits into from Oct 28, 2021

Conversation

tychoish
Copy link
Contributor

This should address many of the remaining concerns of #7149.

config/toml.go Outdated

// WriteConfig writes the config to the file specified by the path,
// and does not mangle the path or filename.
func WriteConfig(conf *Config, path string) error {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like this needs a better name. It makes sense now, in context, but reading it later I know I'm going to get confused.

Perhaps: WriteConfigExactPath?

(I know, in a better world, this would be WriteConfigFile and we'd rename the old one to like WriteRootConfig or something, but we can't fix everything 🙂)

@tychoish tychoish merged commit 6108d0a into tendermint:master Oct 28, 2021
tychoish added a commit that referenced this pull request Oct 29, 2021
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.

None yet

2 participants