2016-12-07 20:56:27 +00:00
|
|
|
|
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
|
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
|
|
|
|
|
|
using Microsoft.DotNet.Cli.Utils;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.DotNet.Tools.Test.Utilities
|
|
|
|
|
{
|
2017-03-14 21:07:51 +00:00
|
|
|
|
public sealed class ListReferenceCommand : DotnetCommand
|
2016-12-07 20:56:27 +00:00
|
|
|
|
{
|
|
|
|
|
private string _projectName = null;
|
|
|
|
|
|
|
|
|
|
public override CommandResult Execute(string args = "")
|
|
|
|
|
{
|
2017-01-06 22:25:23 +00:00
|
|
|
|
args = $"list {_projectName} reference {args}";
|
2016-12-07 20:56:27 +00:00
|
|
|
|
return base.ExecuteWithCapturedOutput(args);
|
|
|
|
|
}
|
|
|
|
|
|
2017-01-06 22:25:23 +00:00
|
|
|
|
public ListReferenceCommand WithProject(string projectName)
|
2016-12-07 20:56:27 +00:00
|
|
|
|
{
|
|
|
|
|
_projectName = projectName;
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|