Move CLI project into subfolder
This commit is contained in:
30
Cli/Program.cs
Normal file
30
Cli/Program.cs
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user