From 854bb717712e517fb913e91d4b8262bdf5a4d36f Mon Sep 17 00:00:00 2001 From: glax Date: Sat, 20 May 2023 00:37:10 +0200 Subject: [PATCH] Print the created task --- Tranga-CLI/Tranga_Cli.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tranga-CLI/Tranga_Cli.cs b/Tranga-CLI/Tranga_Cli.cs index 52ee543..c0c5514 100644 --- a/Tranga-CLI/Tranga_Cli.cs +++ b/Tranga-CLI/Tranga_Cli.cs @@ -55,8 +55,8 @@ public static class Tranga_Cli if(task != TrangaTask.Task.UpdatePublications) publication = SelectPublication(connector); TimeSpan reoccurrence = SelectReoccurrence(); - taskManager.AddTask(task, connector.name, publication, reoccurrence, "en"); - Console.WriteLine($"{task} - {reoccurrence} - {publication?.sortName} - {connector.name}"); + TrangaTask newTask = taskManager.AddTask(task, connector.name, publication, reoccurrence, "en"); + Console.WriteLine(newTask); Console.WriteLine("Press any key."); Console.ReadKey(); menu = 0;