2016-10-04 17:29:07 +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 System;
|
|
|
|
using Microsoft.DotNet.Cli.Utils;
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
namespace Microsoft.DotNet.Tools.Test.Utilities
|
|
|
|
{
|
2016-10-28 01:46:43 +00:00
|
|
|
public sealed class CleanCommand : TestCommand
|
2016-10-04 17:29:07 +00:00
|
|
|
{
|
2016-10-28 01:46:43 +00:00
|
|
|
public CleanCommand()
|
2016-10-04 17:29:07 +00:00
|
|
|
: base("dotnet")
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public override CommandResult Execute(string args = "")
|
|
|
|
{
|
2016-10-28 01:46:43 +00:00
|
|
|
args = $"clean {args}";
|
2016-10-04 17:29:07 +00:00
|
|
|
return base.Execute(args);
|
|
|
|
}
|
|
|
|
|
|
|
|
public override CommandResult ExecuteWithCapturedOutput(string args = "")
|
|
|
|
{
|
2016-10-28 01:46:43 +00:00
|
|
|
args = $"clean {args}";
|
2016-10-04 17:29:07 +00:00
|
|
|
return base.ExecuteWithCapturedOutput(args);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|