2016-10-04 10:07:36 +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
|
|
|
|
|
{
|
2016-10-28 01:46:43 +00:00
|
|
|
|
public sealed class RestoreProjectJsonCommand : TestCommand
|
2016-10-04 10:07:36 +00:00
|
|
|
|
{
|
2016-10-28 01:46:43 +00:00
|
|
|
|
public RestoreProjectJsonCommand()
|
2017-01-07 00:28:04 +00:00
|
|
|
|
: base(new RepoDirectoriesProvider().PjDotnet)
|
2016-10-04 10:07:36 +00:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2016-10-28 01:46:43 +00:00
|
|
|
|
public override CommandResult Execute(string args="")
|
2016-10-04 10:07:36 +00:00
|
|
|
|
{
|
2017-01-07 00:28:04 +00:00
|
|
|
|
args = $"restore {args}";
|
2016-10-28 01:46:43 +00:00
|
|
|
|
|
2016-10-04 10:07:36 +00:00
|
|
|
|
return base.Execute(args);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override CommandResult ExecuteWithCapturedOutput(string args = "")
|
|
|
|
|
{
|
2017-01-07 00:28:04 +00:00
|
|
|
|
args = $"restore {args}";
|
2016-10-04 10:07:36 +00:00
|
|
|
|
return base.ExecuteWithCapturedOutput(args);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|