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

feat(git): Create Git Repository #55

Closed
refcell opened this issue Oct 26, 2023 · 2 comments · Fixed by #89
Closed

feat(git): Create Git Repository #55

refcell opened this issue Oct 26, 2023 · 2 comments · Fixed by #89

Comments

@refcell
Copy link
Owner

refcell commented Oct 26, 2023

Description

Adds a --git flag to amble that allows amble to automatically create a github repo under the user's username.

The --git flag should be of type Option<Option<String>> where the inner string is the user's github username. If it is not specified, amble should try to grab the username like done for the cargo toml repository url field.

When the --full flag is provided, git repo generation should be enabled by default.

@quangkeu95
Copy link
Contributor

As I understand that if the --git flag is set, then we init the git repository first, then we set the remote tracked repository to the url that includes the github user's username, is it right?

@quangkeu95
Copy link
Contributor

quangkeu95 commented Nov 14, 2023

Still not knowing how to grab the username if user input is not provided, please enlighten me !! Also, for the user remote origin url, should I use this format by default: git@github.com:username/new_repo ?

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 a pull request may close this issue.

2 participants