Skip to content

Conversation

@seancpeters
Copy link
Contributor

Implements search and updates for templates on the command line.

After a template is invoked, the template search sources are checked for updates to the template pack. For the nuget search source (the only one that this PR implements), the update check is for a newer version of the same nupkg. If a newer version is found, the user is notified, and given the update command (which is an install).

When a template invocation is attempted but there is no matching template, the search sources are checked for a template that matches the user command. If a match is found, the user is informed and given the command necessary to install the template pack.

Also implements the nuget source scraper. This is meant to be run separately from dotnet new, and generates a search info file. The info file is what is actually looked at when search and update checks happen. A version of the scrape file is included in this PR, and should be updated from time to time. But the PR also implements a way to download a newer version of the file automatically from blob storage - which we will cause to be updated. The scraper is not part of the normal operations of running dotnet new, but if could be adapted for users to scrape custom nuget sources.

@seancpeters seancpeters requested a review from vijayrkn June 12, 2019 02:25
@vijayrkn vijayrkn requested a review from phenning June 12, 2019 17:51
@seancpeters seancpeters merged commit f2438bc into stabilize Jun 21, 2019
@vijayrkn vijayrkn deleted the template_search_and_update branch October 11, 2019 20:54
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.

2 participants