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

Dump config to a file #18279

Closed
adamschmideg opened this issue Dec 11, 2018 · 3 comments
Closed

Dump config to a file #18279

adamschmideg opened this issue Dec 11, 2018 · 3 comments

Comments

@adamschmideg
Copy link
Contributor

If a file is specified, dump it to the file. Otherwise, dump it to stdout. See #16383

@lhendre
Copy link
Contributor

lhendre commented Dec 11, 2018

Hi, I would be interested in this. To clarify, Do you mean to generate a configuration file of geth to a file/stdout based on the description in the other issue?

@karalabe
Copy link
Member

Our current workflow was that we print to stdout, and the user can pipe it into a file. Windows PowerShell apparently screwes up the encoding when piping, so the idea is for dumpconfig to accept an optional argument - a file name - into which we can dump explicitly ourselves instead of stdout.

So we could do geth dumpconfig as previously, but also geth dumpconfig somefile.conf.

@karalabe
Copy link
Member

karalabe commented Jan 7, 2019

Done!

@karalabe karalabe closed this as completed Jan 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants