From b10b4aef2bfbf4dd4b40141b41391cc45c49416a Mon Sep 17 00:00:00 2001 From: calebjenkins Date: Fri, 8 Nov 2024 22:16:57 -0600 Subject: [PATCH] added unit tests and version info on launch text --- README.md | 1 + src/WebAPI/Calebs.WebAPI.csproj | 2 +- src/WebAPI/Program.cs | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a231c22..6058870 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/WebAPI/Calebs.WebAPI.csproj b/src/WebAPI/Calebs.WebAPI.csproj index 7db3ba3..8e4835a 100644 --- a/src/WebAPI/Calebs.WebAPI.csproj +++ b/src/WebAPI/Calebs.WebAPI.csproj @@ -13,7 +13,7 @@ true Calebs.WebAPI ../../nupkg - 1.0.0 + 1.0.1 true https://github.com/calebjenkins/calebs.webapi/ https://github.com/calebjenkins/Calebs.WebAPI.git diff --git a/src/WebAPI/Program.cs b/src/WebAPI/Program.cs index b669a5a..6173afd 100644 --- a/src/WebAPI/Program.cs +++ b/src/WebAPI/Program.cs @@ -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; @@ -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");