dotnet-installer/test/Microsoft.DotNet.Tools.Tests.Utilities/Commands/RestoreCommand.cs

28 lines
806 B
C#
Raw Normal View History

// Copyright (c) .NET Foundation and contributors. All rights reserved.
2015-12-15 01:39:29 +00:00
// 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
2015-12-15 01:39:29 +00:00
{
public sealed class RestoreCommand : TestCommand
{
public RestoreCommand()
: base("dotnet")
{
}
public override CommandResult Execute(string args = "")
2015-12-15 01:39:29 +00:00
{
2016-10-28 16:06:37 +00:00
args = $"restore {args} --disable-parallel";
2015-12-15 01:39:29 +00:00
return base.Execute(args);
}
public override CommandResult ExecuteWithCapturedOutput(string args = "")
{
2016-10-28 16:06:37 +00:00
args = $"restore {args} --disable-parallel";
return base.ExecuteWithCapturedOutput(args);
}
2015-12-15 01:39:29 +00:00
}
}