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 'cimvr new' subcommand to cimvr.py #58

Closed
wants to merge 2 commits into from
Closed

Conversation

Masterchef365
Copy link
Contributor

@Masterchef365 Masterchef365 commented May 6, 2023

Adds a subcommand to cimvr.py which clones the template repository and changes the name in Cargo.toml to match the name of the project. Also adds a line to ~/.bashrc setting the environment variable up.

Another option would be to wrap cargo new and have it add needed files and append deps to Cargo.toml, but that was more work. Had assistance from ChatGPT working out the details!

It might be best to have a list of "recognized" plugins outside of .bashrc, which would be more platform-agnostic.

TODO:

  • Support other shells besides bash
  • Wrap cargo new instead?

@Masterchef365 Masterchef365 marked this pull request as draft May 7, 2023 00:45
@Masterchef365
Copy link
Contributor Author

Superceded by #81

@MrKangs MrKangs deleted the cimvr-new branch May 24, 2023 02:39
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

Successfully merging this pull request may close these issues.

1 participant