-
Notifications
You must be signed in to change notification settings - Fork 224
fix #1113 by adding 'dnu feeds list' command #2121
Conversation
|
||
[Theory] | ||
[MemberData(nameof(RuntimeComponents))] | ||
public void DnuSources_ListsAllSources(string flavor, string os, string architecture) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not 100% happy with this test. It's a little too brittle. I might see if I can tidy it up before pushing.
Oh no! Please don't add |
|
||
namespace Microsoft.Framework.PackageManager | ||
{ | ||
internal static class SourcesCommand |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SourcesConsoleCommand
Ok, but |
I'm not sure I like I'm definitely open to renaming this though if people think that would be less confusing. We could do something like |
@@ -0,0 +1,44 @@ | |||
using System; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
License.
⌚ |
else | ||
{ | ||
Reports.Information.WriteLine("Registered Sources:"); | ||
// Iterate over the sources and report them |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: add empty line before comment
Fix tests! |
I'm going to rename this to |
Ping @troydai @BrennanConroy @victorhurdugaci - Updated to resolve feedback. |
{ | ||
internal class ListSourcesCommand | ||
{ | ||
public Reports Reports { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be required and if it null it will fail. Why don't you pass it as a constructor arg ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just because everything else did it this way :). I'll fix this one
Ping @victorhurdugaci again :) |
My concerns are addressed. |
I can't figure out what's wrong with the PR builds. I'm going to give a private TeamCity build a quick shot but if I can't work that out, just YOLO push and be prepared to revert :). |
b6124c1
to
7a0faf5
Compare
7a0faf5
to
36eab9f
Compare
Fixes #1113
Add
dnu sources
command that lists active sources. It looks like this:Disabled sources have
[Disabled]
next to them in yellow to identify them as disabled. I also tried to centralize some of the disjointed code we have to handle NuGet.config./cc @davidfowl @victorhurdugaci @troydai