Move CLI project into subfolder

This commit is contained in:
Andre Beging
2025-12-12 08:23:19 +01:00
parent 05b92e8f54
commit c9a56abe8b
15 changed files with 2 additions and 2 deletions

30
Cli/Program.cs Normal file
View File

@@ -0,0 +1,30 @@
using System.Net.Http;
using System.Net.Http.Json;
using System.Text.Json.Serialization;
using System.Threading;
using System.Threading.Tasks;
using FsToolbox.Cli;
// See https://aka.ms/new-console-template for more information
using var httpClient = new HttpClient();
// Show menu for the user to choose from the two tasks
Console.WriteLine("Choose a task to execute:");
Console.WriteLine("1. Check Aldi Memberships");
Console.WriteLine("2. Confirm all Unconfirmed Pickups for Lindenberg");
Console.Write("Enter the number of the task to execute (or any other key to exit): ");
var choice = Console.ReadLine();
switch (choice)
{
case "1":
await CustomTasks.CheckAldiMembershipsAsync(httpClient);
break;
case "2":
await CustomTasks.ConfirmUnconfirmedPickupsLindenbergAsync(httpClient);
break;
default:
Console.WriteLine("Exiting...");
break;
}