Move the help command it it's own class.

Also fix the help command to work with intrinsic commands.
This commit is contained in:
Austin Wise 2016-02-04 12:41:50 -08:00
parent f7cba8a630
commit 67b4012e45
4 changed files with 107 additions and 63 deletions

View file

@ -0,0 +1,21 @@
// 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
{
public sealed class HelpCommand : TestCommand
{
public HelpCommand()
: base("dotnet")
{
}
public override CommandResult Execute(string args = "")
{
args = $"help {args}";
return base.Execute(args);
}
}
}