2018-01-18 03:26:52 +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
|
|
|
|
{
|
2018-03-22 02:12:32 +00:00
|
|
|
public sealed class ToolCommand : DotnetCommand
|
2018-01-18 03:26:52 +00:00
|
|
|
{
|
|
|
|
public override CommandResult Execute(string args = "")
|
|
|
|
{
|
2018-03-22 02:12:32 +00:00
|
|
|
return base.Execute($"tool {args}");
|
2018-01-18 03:26:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public override CommandResult ExecuteWithCapturedOutput(string args = "")
|
|
|
|
{
|
2018-03-22 02:12:32 +00:00
|
|
|
return base.ExecuteWithCapturedOutput($"tool {args}");
|
2018-01-18 03:26:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|