Skip to content

Commit

Permalink
added unit tests and version info on launch text
Browse files Browse the repository at this point in the history
  • Loading branch information
calebjenkins committed Nov 9, 2024
1 parent f0e9dde commit b10b4ae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ Please submit all PRs to the `develop` branch
## Version History
- 0.1.0 - intial version. `.NET 7` Installs as a dotnet global tool or run locally as a console web app.
- 1.0.0 - official release. New features coming soon!
- 1.0.1 - added unit tests and version info on launch text
2 changes: 1 addition & 1 deletion src/WebAPI/Calebs.WebAPI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackAsTool>true</PackAsTool>
<ToolCommandName>Calebs.WebAPI</ToolCommandName>
<PackageOutputPath>../../nupkg</PackageOutputPath>
<Version>1.0.0</Version>
<Version>1.0.1</Version>
<IsPackable>true</IsPackable>
<PackageProjectUrl>https://github.com/calebjenkins/calebs.webapi/</PackageProjectUrl>
<RepositoryUrl>https://github.com/calebjenkins/Calebs.WebAPI.git</RepositoryUrl>
Expand Down
5 changes: 5 additions & 0 deletions src/WebAPI/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using FakeAuth; // Using FakeAuth so I can send a 403 without setting up all the needed auth infrastructure
using Calebs.Extensions.Console;
using Calebs.Extensions;

//namespace Calebs.WebAPI;

Expand Down Expand Up @@ -27,8 +28,12 @@
app.MapGet("/Secure", Check_Secure);

var url = app.Urls.FirstOrDefault();
var ver = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;


ConsoleColor.Red.WriteLine(" -==::Caleb's Web API::==-");
ConsoleColor.Blue.Write($"version: {ver}");
ConsoleColor.Blue.WriteLine(" --- more info at https://github.com/calebjenkins/calebs.webapi/ ");
Console.WriteLine("");
Console.WriteLine("Available Endpoints:");
Console.WriteLine($" - GET {url}/hello");
Expand Down

0 comments on commit b10b4ae

Please sign in to comment.