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

Cargo Subcommand? #108

Open
c-git opened this issue Oct 2, 2023 · 1 comment
Open

Cargo Subcommand? #108

c-git opened this issue Oct 2, 2023 · 1 comment

Comments

@c-git
Copy link
Contributor

c-git commented Oct 2, 2023

TLDR

Would it be desirable to have a cargo subcommand to create a new project instead of only this template?

Explanation

I'm about to start a new egui project and was about to copy the template again. Then manually make the required changes again and realized this is probably something that should get automated. I'm considering building a cargo subcommand that would:

  1. Ask the user for a project name and run cargo init to create the new project
  2. Download the files from the master branch of this template
  3. Prompt the user for answers and make the changes specified in the getting started
  4. Prompt the user if caching should be disabled
  5. Prompt if "presentation only" files should be deleted, like the readme. (Actually this is the only one I can think of right now but I'd go through the files and check)

This would provide a quick way to spin up a new project and allow users and easy way to opt out of caching at it appears some ppl would prefer not use it. It would also make it easier for ppl who are only testing and do not want caching at all like in this issue.

@c-git
Copy link
Contributor Author

c-git commented Oct 2, 2023

After further reading I'm wondering if we shouldn't default to no caching as it seems to causes issue for a lot of ppl (tbh I actually like it, but I've not deployed any of my other apps yet so I don't know how it works in production). And using the wizard from the subcommand ppl can opt in.

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

1 participant