2015-12-31 01:02:59 +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.
|
|
|
|
|
|
2016-10-28 01:46:43 +00:00
|
|
|
|
using System;
|
2016-04-23 04:40:39 +00:00
|
|
|
|
using Microsoft.DotNet.Cli.Utils;
|
2016-10-28 01:46:43 +00:00
|
|
|
|
using System.Runtime.InteropServices;
|
2015-12-31 01:02:59 +00:00
|
|
|
|
|
|
|
|
|
namespace Microsoft.DotNet.Tools.Test.Utilities
|
|
|
|
|
{
|
|
|
|
|
public sealed class RunCommand : TestCommand
|
|
|
|
|
{
|
2016-10-28 01:46:43 +00:00
|
|
|
|
public RunCommand()
|
2015-12-31 01:02:59 +00:00
|
|
|
|
: base("dotnet")
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override CommandResult Execute(string args = "")
|
|
|
|
|
{
|
2016-10-28 01:46:43 +00:00
|
|
|
|
args = $"run {args}";
|
2015-12-31 01:02:59 +00:00
|
|
|
|
return base.Execute(args);
|
|
|
|
|
}
|
2016-04-05 00:51:36 +00:00
|
|
|
|
|
2016-03-31 16:00:25 +00:00
|
|
|
|
public override CommandResult ExecuteWithCapturedOutput(string args = "")
|
|
|
|
|
{
|
2016-10-28 01:46:43 +00:00
|
|
|
|
args = $"run {args}";
|
2016-03-31 16:00:25 +00:00
|
|
|
|
return base.ExecuteWithCapturedOutput(args);
|
|
|
|
|
}
|
2015-12-31 01:02:59 +00:00
|
|
|
|
}
|
|
|
|
|
}
|