The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ArgumentOptions.cs 1.0KB

1234567891011121314151617181920212223242526272829
  1. using CommandLine;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. namespace Teknik.ServiceWorker
  6. {
  7. public class ArgumentOptions
  8. {
  9. [Option('a', "all", Default = false, Required = false, HelpText = "Run All Processes")]
  10. public bool RunAll { get; set; }
  11. [Option('c', "config", Required = false, HelpText = "The path to the teknik config file")]
  12. public string Config { get; set; }
  13. [Option('s', "scan", Default = false, Required = false, HelpText = "Scan all uploads for viruses")]
  14. public bool ScanUploads { get; set; }
  15. [Option('m', "migrate", Default = false, Required = false, HelpText = "Migrate everything")]
  16. public bool Migrate { get; set; }
  17. [Option('e', "expire", Default = false, Required = false, HelpText = "Process Expirations")]
  18. public bool Expire { get; set; }
  19. // Omitting long name, default --verbose
  20. [Option(HelpText = "Prints all messages to standard output.")]
  21. public bool Verbose { get; set; }
  22. }
  23. }