forked from amkovkov/GranuSightSoftware2
feat: ImageSotrage clear
This commit is contained in:
@@ -95,6 +95,12 @@ public partial class Program
|
||||
DefaultValueFactory = (_) => 0
|
||||
};
|
||||
|
||||
private static readonly Command _imageStorageClearCommand = new("image-storage-clear")
|
||||
{
|
||||
Description = "Clear image storage from unused images"
|
||||
};
|
||||
|
||||
|
||||
public static event ConsoleCancelEventHandler? ShutdownRequested;
|
||||
|
||||
[STAThread]
|
||||
@@ -124,6 +130,9 @@ public partial class Program
|
||||
_captureCommand.Add(_captureIntencityUv365nm);
|
||||
_captureCommand.Add(_captureIntencityUv254nm);
|
||||
|
||||
_rootCommand.Add(_imageStorageClearCommand);
|
||||
_imageStorageClearCommand.SetAction(ImageStorageClear);
|
||||
|
||||
Console.CancelKeyPress += new ConsoleCancelEventHandler(OnProgramShutdown);
|
||||
Console.WriteLine("Press Ctrl+C to shut down.");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user