winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Clone and configure a GitHub project

Open denelon opened this issue 1 year ago • 3 comments

Description of the new feature / enhancement

I'd like to simplify the process of cloning and configuring a GitHub project.

The trivial syntax would look something like this: winget configure https://github.com/microsoft/winget-cli

Gaps:

  • [ ] WinGet would need to ensure Git is on the system (it might need to be updated).
  • [ ] WinGet would need to have a default behavior with respect to where to clone the repository.
  • [ ] The user should be able to specify where the clone should happen on their filesystem.
  • [ ] If more than one configuration is available, the user should be able to specify.

This would also greatly simplify the process for users on a new system getting their personal configuration set up just the way they like. It also means the user would need to remember the raw GitHub URL for their configuration.

I'm still working on my stuff, and it probably is broken, but I'd like to be able to run the following command on any machine I use so all my favorite stuff is installed and configured:

winget configure https://github.com/denelon/setup

Suggested by @acangialosi

Proposed technical implementation details

No response

denelon avatar May 01 '24 16:05 denelon

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

github-actions[bot] avatar May 01 '24 16:05 github-actions[bot]

WinGet would need to have a default behavior with respect to where to clone the repository.

I think this could be just like git, where the present working directory is used

Trenly avatar May 01 '24 16:05 Trenly

A possible extension of this concept could be using the well-known DSC configuration on the local machine with a parameter like "--use-default-configuration". It would enable an iterative workflow like the one below.

git checkout release-v1.0.11451 winget configure --use-default-configuration ##build, test, code in older code base## git checkout main winget configure --use-default-configuration ##resume work on main branch##

acangialosi avatar May 01 '24 16:05 acangialosi