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

Feature(Config): Dump default config #253

Closed
a-kenji opened this issue Apr 5, 2021 · 7 comments
Closed

Feature(Config): Dump default config #253

a-kenji opened this issue Apr 5, 2021 · 7 comments
Assignees
Labels
config Improvements to the configuration system documentation Improvements or additions to documentation enhancement New feature or request

Comments

@a-kenji
Copy link
Contributor

a-kenji commented Apr 5, 2021

Make it possible to dump a default config to
either stdout or a file.
Possibly with comments explaining the Actions,
related to #247 .

More discussion in #244 ,
especially #224 (comment) .

@a-kenji a-kenji added documentation Improvements or additions to documentation enhancement New feature or request labels Apr 5, 2021
@a-kenji
Copy link
Contributor Author

a-kenji commented Apr 20, 2021

Should be easy to implement once #283 is there.

@matthiasbeyer
Copy link
Contributor

I think this is a good idea, opposing to writing a default configuration automatically on the first run, which I think is a bad idea (since implicit is always worse than explicit).

Having a warning about a missing configuration file and a note on how to create a default config file is IMO a way better user experience than just silently writing a default file to disk and using that.

@a-kenji
Copy link
Contributor Author

a-kenji commented Apr 23, 2021

I think this is a good idea, opposing to writing a default configuration automatically on the first run, which I think is a bad idea (since implicit is always worse than explicit).

I agree, this seems like a more sane default.

Having a warning about a missing configuration file and a note on how to create a default config file is IMO a way better user experience than just silently writing a default file to disk and using that.

Maybe have a command that will bootstrap everything for the user? And a different to dump it to stdout?

@a-kenji a-kenji added the config Improvements to the configuration system label Apr 23, 2021
@matthiasbeyer
Copy link
Contributor

Maybe have a command that will bootstrap everything for the user?

Yep, a nice interactive one probably. Maybe there's even a framework for things like that somewhere, otherwise we could implement a small one (would love to contribute on such a thing)!

And a different to dump it to stdout?

Yep, sounds good.

@a-kenji
Copy link
Contributor Author

a-kenji commented Apr 23, 2021

Awesome! I will try to get a different issue to kind of pull all that stuff together soonish.

@a-kenji a-kenji self-assigned this Apr 26, 2021
@imsnif
Copy link
Member

imsnif commented May 27, 2021

@a-kenji - I think this is released already, right?

@a-kenji
Copy link
Contributor Author

a-kenji commented May 29, 2021

@imsnif - Yes!

@a-kenji a-kenji closed this as completed May 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config Improvements to the configuration system documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants