Day Helpers

net8.0
Wrap in try
Zip with directories
This commit is contained in:
2023-10-16 15:17:21 -07:00
parent 0772ab582c
commit 948937d8a5
8 changed files with 123 additions and 13 deletions

View File

@ -47,6 +47,7 @@ public class Worker : BackgroundService
ConsoleKey.T,
ConsoleKey.U,
ConsoleKey.V,
ConsoleKey.W,
ConsoleKey.X,
ConsoleKey.Y,
ConsoleKey.Z,
@ -115,7 +116,7 @@ public class Worker : BackgroundService
_Logger.LogInformation("U) Links for Hugo,");
_Logger.LogInformation("V) VSCode Hope Sort,");
// W
_Logger.LogInformation("X) Download,");
_Logger.LogInformation("X) Day Helpers,");
_Logger.LogInformation("Y) Zip file(s) by directory with file,");
_Logger.LogInformation("Z) Zip file(s) by date,");
_Logger.LogInformation("Delete) Delete empty directories,");
@ -187,7 +188,7 @@ public class Worker : BackgroundService
Helpers.HelperVSCodePossibleExtension.Sort(_Logger, _Args);
break;
case ConsoleKey.X:
Helpers.HelperDownload.SaveJson(_Logger, _Args[0]);
Helpers.HelperDay.Select(_AppSettings, _Logger, _Args);
break;
case ConsoleKey.Y:
Helpers.HelperZipFilesBy.ZipFilesByDirectoryWithFile(_Logger, _Args[0]);