-
Notifications
You must be signed in to change notification settings - Fork 122
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
Consider a "towncrier init" subcommand #335
Comments
Thanks for putting this together. The I prefer to just call If there is a question, I need to read the documentation and decide what I should answer.
Yes. For my projects the dir is named
Is best if it can use
Yes.
Always towncrier.toml
Always use towncrier.toml . |
You're welcome. 🙂 Thanks for considering my idea.
Yes, that was the idea. Maybe we can allow more options to adapt some parts of the config file.
Sorry, I wasn't exact on this part. The questions were meant as some discussion points IF you think this issue is somehow useful. 😉 To give you some further ideas which are dependent or related. I didn't mean to use this questions to ask the user directly (although you could do that with some if you prefer that). Hope that clarifies it. 🙂
That's correct. As said, it wasn't meant to ask the user directly, but maybe allow for some customization through options.
That's the point. Not sure if this will work in all cases. Sometimes, The simplest implementation would be to require some options. That would avoid complicated code and also avoid guessing. What about this idea: as a first step, we could require some minimum options that the user has to pass to
Good idea. 😉 Thanks Adi for your reply! 👍 |
I guess that if you are just staring a project, you have a simple setup.cfg. If your project is complicated... you can read the towncrier docs and figure out how to integrate it :) We should not block the creating of an
Sound good. |
Doesn't towncrier do on-the-fly name detection etc? So why are we also doing it up-front? As to asking the user questions, as long as you give a default then I don't see a problem with it. If they want to not care, they can press enter and accept the default. But... I'm not super excited about trying to work through the details, but I do think this command is useful, so I'll plan on being happy with whatever you two come up with. |
I will never use such a command as I will rig my own build system and don't go with the default :) I just left my feedback as I hope it can help with a future PR. Even if I will not use so @tomschr you can design the |
Situation
Consider this use case: a developer wants to start a new project. Or another developer has an existing project. Both projects don't use Towncrier yet. In all cases, the user has to create the configuration file manually or has to read the documentation.
Proposed solution
It would be helpful, if Towncrier could create some default configuration. This could be done with a
towncrier init
subcommand. It could work like this:towncrier init
. It will create atowncrier.toml
file.towncrier.toml
file (or leave it as is).Benefits
Questions
changes
in the README?towncrier.toml
?pyproject.toml
?Synopsis
Maybe another option to enable/disable certain types could be useful. Not sure.
The text was updated successfully, but these errors were encountered: