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

Add a init subcommand #2

Open
sebbacon opened this issue Dec 3, 2020 · 2 comments
Open

Add a init subcommand #2

sebbacon opened this issue Dec 3, 2020 · 2 comments

Comments

@sebbacon
Copy link

sebbacon commented Dec 3, 2020

This should replace the current "make a repository using a template" workflow.

For now, it can just download the code from the current research template.

The reason this is better is that it allows us to grow new command line options, for example, for updating the GHA tests; it also means we don't have to explain what a Github template is, etc.

The documentation should also be updated. Also here

@evansd
Copy link
Contributor

evansd commented Dec 8, 2020

Further thought: this should obviously check if the project has already been set up and not automatically overwrite existing files. But if it does find existing files it could prompt you to run init --update (or something) which would try to update the project to match the latest version of the template. I'm thinking specifically of the github actions here which we don't expect the user to edit, but there might be other things we can safely update as well.

@sebbacon
Copy link
Author

Oh, I wrote up ideas about this a few months ago! opensafely-core/cohort-extractor#327

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

No branches or pull requests

2 participants