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
|
|
|
|
{
|
2017-03-14 21:07:51 +00:00
|
|
|
public sealed class CleanCommand : DotnetCommand
|
2016-10-04 17:29:07 +00:00
|
|
|
{
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|