This commit is contained in:
Chris Cheetham 2018-08-07 16:08:51 -04:00
Родитель 448ab7701f
Коммит eb913d5c28
21 изменённых файлов: 331 добавлений и 90 удалений

Просмотреть файл

@ -15,11 +15,25 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{D86CBDAE-DF37-4BDF-8F81-C79FB11DEC0D}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Steeltoe.Tooling", "src\Steeltoe.Tooling\Steeltoe.Tooling.csproj", "{20215C70-3EF8-40B0-A34E-67E8F32C11DA}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{67CB55E8-C6E9-471F-A799-7AE925E921ED}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Steeltoe.Tooling.Test", "test\Steeltoe.Tooling.Test\Steeltoe.Tooling.Test.csproj", "{A0F13C6E-391E-44DC-A879-EE4CC20E052C}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "feature", "feature", "{D95EB329-EB3F-4287-90D6-304D509B305F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Steeltoe.Tooling.System", "src\Steeltoe.Tooling.System\Steeltoe.Tooling.System.csproj", "{4A285C9B-8D00-4502-8590-9F5346FF425E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Steeltoe.Tooling.System.Test", "test\Steeltoe.Tooling.System.Test\Steeltoe.Tooling.System.Test.csproj", "{BEC68D56-CA5C-4161-B581-5FD1D2E267C0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Steeltoe.Tooling.CloudFoundry", "src\Steeltoe.Tooling.CloudFoundry\Steeltoe.Tooling.CloudFoundry.csproj", "{8859BF4B-0EA8-415E-ACA6-83990B2300BA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Steeltoe.Tooling.DotnetCLI", "src\Steeltoe.Tooling.DotnetCLI\Steeltoe.Tooling.DotnetCLI.csproj", "{51D148CB-D7E1-453F-9EC7-2381294C29A2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Steeltoe.Tooling.DotnetCLI.Base", "src\Steeltoe.Tooling.DotnetCLI.Base\Steeltoe.Tooling.DotnetCLI.Base.csproj", "{8A3CCF8A-2B40-499D-9590-E06369F76441}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Steeltoe.Tooling.DotnetCLI.Doctor", "src\Steeltoe.Tooling.DotnetCLI.Doctor\Steeltoe.Tooling.DotnetCLI.Doctor.csproj", "{8384A2EF-FE17-405B-9614-210980B495D6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Steeltoe.Tooling.DotnetCLI.Target", "src\Steeltoe.Tooling.DotnetCLI.Target\Steeltoe.Tooling.DotnetCLI.Target.csproj", "{C62D7666-5A33-4A6D-8802-391CA60D7D46}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Steeltoe.Tooling.DotnetCLI.Target.Feature", "feature\Steeltoe.Tooling.DotnetCLI.Target.Feature\Steeltoe.Tooling.DotnetCLI.Target.Feature.csproj", "{825A174D-FA0B-45A5-99EB-53863EA970C4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -31,37 +45,115 @@ Global
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{20215C70-3EF8-40B0-A34E-67E8F32C11DA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{20215C70-3EF8-40B0-A34E-67E8F32C11DA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{20215C70-3EF8-40B0-A34E-67E8F32C11DA}.Debug|x64.ActiveCfg = Debug|Any CPU
{20215C70-3EF8-40B0-A34E-67E8F32C11DA}.Debug|x64.Build.0 = Debug|Any CPU
{20215C70-3EF8-40B0-A34E-67E8F32C11DA}.Debug|x86.ActiveCfg = Debug|Any CPU
{20215C70-3EF8-40B0-A34E-67E8F32C11DA}.Debug|x86.Build.0 = Debug|Any CPU
{20215C70-3EF8-40B0-A34E-67E8F32C11DA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{20215C70-3EF8-40B0-A34E-67E8F32C11DA}.Release|Any CPU.Build.0 = Release|Any CPU
{20215C70-3EF8-40B0-A34E-67E8F32C11DA}.Release|x64.ActiveCfg = Release|Any CPU
{20215C70-3EF8-40B0-A34E-67E8F32C11DA}.Release|x64.Build.0 = Release|Any CPU
{20215C70-3EF8-40B0-A34E-67E8F32C11DA}.Release|x86.ActiveCfg = Release|Any CPU
{20215C70-3EF8-40B0-A34E-67E8F32C11DA}.Release|x86.Build.0 = Release|Any CPU
{A0F13C6E-391E-44DC-A879-EE4CC20E052C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A0F13C6E-391E-44DC-A879-EE4CC20E052C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A0F13C6E-391E-44DC-A879-EE4CC20E052C}.Debug|x64.ActiveCfg = Debug|Any CPU
{A0F13C6E-391E-44DC-A879-EE4CC20E052C}.Debug|x64.Build.0 = Debug|Any CPU
{A0F13C6E-391E-44DC-A879-EE4CC20E052C}.Debug|x86.ActiveCfg = Debug|Any CPU
{A0F13C6E-391E-44DC-A879-EE4CC20E052C}.Debug|x86.Build.0 = Debug|Any CPU
{A0F13C6E-391E-44DC-A879-EE4CC20E052C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A0F13C6E-391E-44DC-A879-EE4CC20E052C}.Release|Any CPU.Build.0 = Release|Any CPU
{A0F13C6E-391E-44DC-A879-EE4CC20E052C}.Release|x64.ActiveCfg = Release|Any CPU
{A0F13C6E-391E-44DC-A879-EE4CC20E052C}.Release|x64.Build.0 = Release|Any CPU
{A0F13C6E-391E-44DC-A879-EE4CC20E052C}.Release|x86.ActiveCfg = Release|Any CPU
{A0F13C6E-391E-44DC-A879-EE4CC20E052C}.Release|x86.Build.0 = Release|Any CPU
{4A285C9B-8D00-4502-8590-9F5346FF425E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4A285C9B-8D00-4502-8590-9F5346FF425E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4A285C9B-8D00-4502-8590-9F5346FF425E}.Debug|x64.ActiveCfg = Debug|Any CPU
{4A285C9B-8D00-4502-8590-9F5346FF425E}.Debug|x64.Build.0 = Debug|Any CPU
{4A285C9B-8D00-4502-8590-9F5346FF425E}.Debug|x86.ActiveCfg = Debug|Any CPU
{4A285C9B-8D00-4502-8590-9F5346FF425E}.Debug|x86.Build.0 = Debug|Any CPU
{4A285C9B-8D00-4502-8590-9F5346FF425E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4A285C9B-8D00-4502-8590-9F5346FF425E}.Release|Any CPU.Build.0 = Release|Any CPU
{4A285C9B-8D00-4502-8590-9F5346FF425E}.Release|x64.ActiveCfg = Release|Any CPU
{4A285C9B-8D00-4502-8590-9F5346FF425E}.Release|x64.Build.0 = Release|Any CPU
{4A285C9B-8D00-4502-8590-9F5346FF425E}.Release|x86.ActiveCfg = Release|Any CPU
{4A285C9B-8D00-4502-8590-9F5346FF425E}.Release|x86.Build.0 = Release|Any CPU
{BEC68D56-CA5C-4161-B581-5FD1D2E267C0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BEC68D56-CA5C-4161-B581-5FD1D2E267C0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BEC68D56-CA5C-4161-B581-5FD1D2E267C0}.Debug|x64.ActiveCfg = Debug|Any CPU
{BEC68D56-CA5C-4161-B581-5FD1D2E267C0}.Debug|x64.Build.0 = Debug|Any CPU
{BEC68D56-CA5C-4161-B581-5FD1D2E267C0}.Debug|x86.ActiveCfg = Debug|Any CPU
{BEC68D56-CA5C-4161-B581-5FD1D2E267C0}.Debug|x86.Build.0 = Debug|Any CPU
{BEC68D56-CA5C-4161-B581-5FD1D2E267C0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BEC68D56-CA5C-4161-B581-5FD1D2E267C0}.Release|Any CPU.Build.0 = Release|Any CPU
{BEC68D56-CA5C-4161-B581-5FD1D2E267C0}.Release|x64.ActiveCfg = Release|Any CPU
{BEC68D56-CA5C-4161-B581-5FD1D2E267C0}.Release|x64.Build.0 = Release|Any CPU
{BEC68D56-CA5C-4161-B581-5FD1D2E267C0}.Release|x86.ActiveCfg = Release|Any CPU
{BEC68D56-CA5C-4161-B581-5FD1D2E267C0}.Release|x86.Build.0 = Release|Any CPU
{8859BF4B-0EA8-415E-ACA6-83990B2300BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8859BF4B-0EA8-415E-ACA6-83990B2300BA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8859BF4B-0EA8-415E-ACA6-83990B2300BA}.Debug|x64.ActiveCfg = Debug|Any CPU
{8859BF4B-0EA8-415E-ACA6-83990B2300BA}.Debug|x64.Build.0 = Debug|Any CPU
{8859BF4B-0EA8-415E-ACA6-83990B2300BA}.Debug|x86.ActiveCfg = Debug|Any CPU
{8859BF4B-0EA8-415E-ACA6-83990B2300BA}.Debug|x86.Build.0 = Debug|Any CPU
{8859BF4B-0EA8-415E-ACA6-83990B2300BA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8859BF4B-0EA8-415E-ACA6-83990B2300BA}.Release|Any CPU.Build.0 = Release|Any CPU
{8859BF4B-0EA8-415E-ACA6-83990B2300BA}.Release|x64.ActiveCfg = Release|Any CPU
{8859BF4B-0EA8-415E-ACA6-83990B2300BA}.Release|x64.Build.0 = Release|Any CPU
{8859BF4B-0EA8-415E-ACA6-83990B2300BA}.Release|x86.ActiveCfg = Release|Any CPU
{8859BF4B-0EA8-415E-ACA6-83990B2300BA}.Release|x86.Build.0 = Release|Any CPU
{51D148CB-D7E1-453F-9EC7-2381294C29A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{51D148CB-D7E1-453F-9EC7-2381294C29A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{51D148CB-D7E1-453F-9EC7-2381294C29A2}.Debug|x64.ActiveCfg = Debug|Any CPU
{51D148CB-D7E1-453F-9EC7-2381294C29A2}.Debug|x64.Build.0 = Debug|Any CPU
{51D148CB-D7E1-453F-9EC7-2381294C29A2}.Debug|x86.ActiveCfg = Debug|Any CPU
{51D148CB-D7E1-453F-9EC7-2381294C29A2}.Debug|x86.Build.0 = Debug|Any CPU
{51D148CB-D7E1-453F-9EC7-2381294C29A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{51D148CB-D7E1-453F-9EC7-2381294C29A2}.Release|Any CPU.Build.0 = Release|Any CPU
{51D148CB-D7E1-453F-9EC7-2381294C29A2}.Release|x64.ActiveCfg = Release|Any CPU
{51D148CB-D7E1-453F-9EC7-2381294C29A2}.Release|x64.Build.0 = Release|Any CPU
{51D148CB-D7E1-453F-9EC7-2381294C29A2}.Release|x86.ActiveCfg = Release|Any CPU
{51D148CB-D7E1-453F-9EC7-2381294C29A2}.Release|x86.Build.0 = Release|Any CPU
{8384A2EF-FE17-405B-9614-210980B495D6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8384A2EF-FE17-405B-9614-210980B495D6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8384A2EF-FE17-405B-9614-210980B495D6}.Debug|x64.ActiveCfg = Debug|Any CPU
{8384A2EF-FE17-405B-9614-210980B495D6}.Debug|x64.Build.0 = Debug|Any CPU
{8384A2EF-FE17-405B-9614-210980B495D6}.Debug|x86.ActiveCfg = Debug|Any CPU
{8384A2EF-FE17-405B-9614-210980B495D6}.Debug|x86.Build.0 = Debug|Any CPU
{8384A2EF-FE17-405B-9614-210980B495D6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8384A2EF-FE17-405B-9614-210980B495D6}.Release|Any CPU.Build.0 = Release|Any CPU
{8384A2EF-FE17-405B-9614-210980B495D6}.Release|x64.ActiveCfg = Release|Any CPU
{8384A2EF-FE17-405B-9614-210980B495D6}.Release|x64.Build.0 = Release|Any CPU
{8384A2EF-FE17-405B-9614-210980B495D6}.Release|x86.ActiveCfg = Release|Any CPU
{8384A2EF-FE17-405B-9614-210980B495D6}.Release|x86.Build.0 = Release|Any CPU
{C62D7666-5A33-4A6D-8802-391CA60D7D46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C62D7666-5A33-4A6D-8802-391CA60D7D46}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C62D7666-5A33-4A6D-8802-391CA60D7D46}.Debug|x64.ActiveCfg = Debug|Any CPU
{C62D7666-5A33-4A6D-8802-391CA60D7D46}.Debug|x64.Build.0 = Debug|Any CPU
{C62D7666-5A33-4A6D-8802-391CA60D7D46}.Debug|x86.ActiveCfg = Debug|Any CPU
{C62D7666-5A33-4A6D-8802-391CA60D7D46}.Debug|x86.Build.0 = Debug|Any CPU
{C62D7666-5A33-4A6D-8802-391CA60D7D46}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C62D7666-5A33-4A6D-8802-391CA60D7D46}.Release|Any CPU.Build.0 = Release|Any CPU
{C62D7666-5A33-4A6D-8802-391CA60D7D46}.Release|x64.ActiveCfg = Release|Any CPU
{C62D7666-5A33-4A6D-8802-391CA60D7D46}.Release|x64.Build.0 = Release|Any CPU
{C62D7666-5A33-4A6D-8802-391CA60D7D46}.Release|x86.ActiveCfg = Release|Any CPU
{C62D7666-5A33-4A6D-8802-391CA60D7D46}.Release|x86.Build.0 = Release|Any CPU
{8A3CCF8A-2B40-499D-9590-E06369F76441}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8A3CCF8A-2B40-499D-9590-E06369F76441}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8A3CCF8A-2B40-499D-9590-E06369F76441}.Debug|x64.ActiveCfg = Debug|Any CPU
{8A3CCF8A-2B40-499D-9590-E06369F76441}.Debug|x64.Build.0 = Debug|Any CPU
{8A3CCF8A-2B40-499D-9590-E06369F76441}.Debug|x86.ActiveCfg = Debug|Any CPU
{8A3CCF8A-2B40-499D-9590-E06369F76441}.Debug|x86.Build.0 = Debug|Any CPU
{8A3CCF8A-2B40-499D-9590-E06369F76441}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8A3CCF8A-2B40-499D-9590-E06369F76441}.Release|Any CPU.Build.0 = Release|Any CPU
{8A3CCF8A-2B40-499D-9590-E06369F76441}.Release|x64.ActiveCfg = Release|Any CPU
{8A3CCF8A-2B40-499D-9590-E06369F76441}.Release|x64.Build.0 = Release|Any CPU
{8A3CCF8A-2B40-499D-9590-E06369F76441}.Release|x86.ActiveCfg = Release|Any CPU
{8A3CCF8A-2B40-499D-9590-E06369F76441}.Release|x86.Build.0 = Release|Any CPU
{825A174D-FA0B-45A5-99EB-53863EA970C4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{825A174D-FA0B-45A5-99EB-53863EA970C4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{825A174D-FA0B-45A5-99EB-53863EA970C4}.Debug|x64.ActiveCfg = Debug|Any CPU
{825A174D-FA0B-45A5-99EB-53863EA970C4}.Debug|x64.Build.0 = Debug|Any CPU
{825A174D-FA0B-45A5-99EB-53863EA970C4}.Debug|x86.ActiveCfg = Debug|Any CPU
{825A174D-FA0B-45A5-99EB-53863EA970C4}.Debug|x86.Build.0 = Debug|Any CPU
{825A174D-FA0B-45A5-99EB-53863EA970C4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{825A174D-FA0B-45A5-99EB-53863EA970C4}.Release|Any CPU.Build.0 = Release|Any CPU
{825A174D-FA0B-45A5-99EB-53863EA970C4}.Release|x64.ActiveCfg = Release|Any CPU
{825A174D-FA0B-45A5-99EB-53863EA970C4}.Release|x64.Build.0 = Release|Any CPU
{825A174D-FA0B-45A5-99EB-53863EA970C4}.Release|x86.ActiveCfg = Release|Any CPU
{825A174D-FA0B-45A5-99EB-53863EA970C4}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{20215C70-3EF8-40B0-A34E-67E8F32C11DA} = {D86CBDAE-DF37-4BDF-8F81-C79FB11DEC0D}
{A0F13C6E-391E-44DC-A879-EE4CC20E052C} = {67CB55E8-C6E9-471F-A799-7AE925E921ED}
{4A285C9B-8D00-4502-8590-9F5346FF425E} = {D86CBDAE-DF37-4BDF-8F81-C79FB11DEC0D}
{BEC68D56-CA5C-4161-B581-5FD1D2E267C0} = {67CB55E8-C6E9-471F-A799-7AE925E921ED}
{8859BF4B-0EA8-415E-ACA6-83990B2300BA} = {D86CBDAE-DF37-4BDF-8F81-C79FB11DEC0D}
{51D148CB-D7E1-453F-9EC7-2381294C29A2} = {D86CBDAE-DF37-4BDF-8F81-C79FB11DEC0D}
{8384A2EF-FE17-405B-9614-210980B495D6} = {D86CBDAE-DF37-4BDF-8F81-C79FB11DEC0D}
{C62D7666-5A33-4A6D-8802-391CA60D7D46} = {D86CBDAE-DF37-4BDF-8F81-C79FB11DEC0D}
{8A3CCF8A-2B40-499D-9590-E06369F76441} = {D86CBDAE-DF37-4BDF-8F81-C79FB11DEC0D}
{825A174D-FA0B-45A5-99EB-53863EA970C4} = {D95EB329-EB3F-4287-90D6-304D509B305F}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {A443975C-C563-4CBC-9EBA-A21E6D258E77}

Просмотреть файл

@ -1,22 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="LightBDD.XUnit2" Version="2.4.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.8.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.0" />
<PackageReference Include="Shouldly" Version="3.0.0" />
<PackageReference Include="xunit" Version="2.4.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
<PackageReference Include="xunit" Version="2.3.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Steeltoe.Tooling\Steeltoe.Tooling.csproj" />
</ItemGroup>
</Project>
</Project>

Просмотреть файл

@ -0,0 +1,42 @@
// Copyright 2018 the original author or authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
using LightBDD.Framework;
using LightBDD.XUnit2;
using Shouldly;
namespace Steeltoe.Tooling.Test
{
public partial class TargetFeature: FeatureFixture
{
private void a_blank_project()
{
}
private void the_developer_runs(string command)
{
command.ShouldBe("target");
}
private void the_developer_sees_help_message_for_target_command()
{
}
private void the_command_succeeds()
{
}
}
}

Просмотреть файл

@ -1,5 +1,18 @@
using LightBDD.Framework;
using LightBDD.Framework.Scenarios.Basic;
// Copyright 2018 the original author or authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
using LightBDD.Framework;
using LightBDD.Framework.Scenarios.Extended;
using LightBDD.XUnit2;
@ -24,4 +37,4 @@ I want to simple tell Steeltoe Tooling what enviornment in which I want to run")
and => the_developer_sees_help_message_for_target_command());
}
}
}
}

Просмотреть файл

@ -16,7 +16,7 @@ using System.Collections.Generic;
using System.IO;
using YamlDotNet.Serialization;
namespace Steeltoe.Tooling
namespace Steeltoe.Tooling.CloudFoundry
{
public class CloudFoundryConfiguration

Просмотреть файл

@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="YamlDotNet" Version="5.0.1" />
</ItemGroup>
</Project>

Просмотреть файл

@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.5" />
</ItemGroup>
</Project>

Просмотреть файл

@ -14,10 +14,10 @@
using System;
namespace Steeltoe.Tooling
namespace Steeltoe.Tooling.DotnetCLI
{
internal class UsageException : Exception
public class UsageException : Exception
{
internal UsageException(string message) : base(message) {}
public UsageException(string message) : base(message) {}
}
}
}

Просмотреть файл

@ -16,12 +16,12 @@ using McMaster.Extensions.CommandLineUtils;
using System;
using System.Diagnostics;
namespace Steeltoe.Tooling
namespace Steeltoe.Tooling.DotnetCLI.Doctor
{
[Command(Description = "Run a health check on your Steeltoe development environment")]
internal class DoctorCommand : DotnetSteeltoeCommand
public class DoctorCommand
{
protected override int OnExecute(CommandLineApplication app)
protected int OnExecute(CommandLineApplication app)
{
var healthy = true;
healthy = CheckDotnet(app) && healthy;

Просмотреть файл

@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.5" />
</ItemGroup>
</Project>

Просмотреть файл

@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.5" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Steeltoe.Tooling.CloudFoundry\Steeltoe.Tooling.CloudFoundry.csproj" />
<ProjectReference Include="..\Steeltoe.Tooling.DotnetCLI.Base\Steeltoe.Tooling.DotnetCLI.Base.csproj" />
</ItemGroup>
</Project>

Просмотреть файл

@ -12,14 +12,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
using System;
using System.IO;
using System.Net.Mime;
using McMaster.Extensions.CommandLineUtils;
using YamlDotNet.Serialization;
using Steeltoe.Tooling.CloudFoundry;
namespace Steeltoe.Tooling
namespace Steeltoe.Tooling.DotnetCLI.Target
{
[Command(Description = "Set the target environment, e.g. Cloud Foundry")]
internal class TargetCommand : DotnetSteeltoeCommand
public class TargetCommand
{
[Argument(0, Description = "Specify one of: cloud-foundry.")]
private string Environment { get; }
@ -39,7 +41,7 @@ namespace Steeltoe.Tooling
[Option("--force", Description = "Forces content to be generated even if it would change existing files.")]
private bool Force { get; }
protected override int OnExecute(CommandLineApplication app)
protected int OnExecute(CommandLineApplication app)
{
try
{
@ -90,4 +92,4 @@ namespace Steeltoe.Tooling
return 0;
}
}
}
}

Просмотреть файл

@ -12,14 +12,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
using System;
using McMaster.Extensions.CommandLineUtils;
namespace Steeltoe.Tooling
namespace Steeltoe.Tooling.DotnetCLI
{
[Command(Name = "steeltoe", Description = "Steeltoe Developer Tools")]
[Subcommand("doctor", typeof(DoctorCommand))]
[Subcommand("target", typeof(TargetCommand))]
[Subcommand("doctor", typeof(Doctor.DoctorCommand))]
[Subcommand("target", typeof(Target.TargetCommand))]
class Program
{
public static int Main(string[] args) => CommandLineApplication.Execute<Program>(args);

Просмотреть файл

@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<ToolCommandName>steeltoe</ToolCommandName>
<PackAsTool>true</PackAsTool>
<OutputType>exe</OutputType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.5" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Steeltoe.Tooling.DotnetCLI.Doctor\Steeltoe.Tooling.DotnetCLI.Doctor.csproj" />
<ProjectReference Include="..\Steeltoe.Tooling.DotnetCLI.Target\Steeltoe.Tooling.DotnetCLI.Target.csproj" />
</ItemGroup>
</Project>

Просмотреть файл

@ -0,0 +1,22 @@
// Copyright 2018 the original author or authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
using System;
namespace Steeltoe.Tooling.System
{
public class Shell
{
}
}

Просмотреть файл

@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>
</Project>

Просмотреть файл

@ -9,4 +9,10 @@
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.2.5" />
<PackageReference Include="YamlDotNet" Version="5.0.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Steeltoe.Tooling.Doctor\Steeltoe.Tooling.Doctor.csproj" />
<ProjectReference Include="..\Steeltoe.Tooling.DotnetCLI.Doctor\Steeltoe.Tooling.DotnetCLI.Doctor.csproj" />
<ProjectReference Include="..\Steeltoe.Tooling.DotnetCLI.Target\Steeltoe.Tooling.DotnetCLI.Target.csproj" />
<ProjectReference Include="..\Steeltoe.Tooling.Target\Steeltoe.Tooling.Target.csproj" />
</ItemGroup>
</Project>

Просмотреть файл

@ -0,0 +1,27 @@
// Copyright 2018 the original author or authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
using System;
using Xunit;
namespace Steeltoe.Tooling.System.Test
{
public class ShellTest
{
[Fact]
public void TestThis()
{
}
}
}

Просмотреть файл

@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.1</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.0"/>
<PackageReference Include="xunit" Version="2.3.1"/>
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1"/>
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.1"/>
</ItemGroup>
</Project>

Просмотреть файл

@ -1,28 +0,0 @@
using LightBDD.Framework;
using LightBDD.XUnit2;
using Shouldly;
namespace Steeltoe.Tooling.Test
{
public partial class TargetFeature: FeatureFixture
{
private void a_blank_project()
{
}
private void the_developer_runs(string command)
{
command.ShouldBe("target");
}
private void the_developer_sees_help_message_for_target_command()
{
}
private void the_command_succeeds()
{
}
}
}