Ejemplo n.º 1
0
 internal static CoconaApp RegisterFileCommands(this CoconaApp app)
 {
     app.AddSubCommand("clean", command =>
     {
         command.AddCommand("html", (
                                [FromService] IFileHandlingService fileHandlingService) =>
         {
             fileHandlingService.DeleteHtmlAllFiles();
         })
Ejemplo n.º 2
0
 internal static CoconaApp RegisterUploadCommands(this CoconaApp app)
 {
     app.AddSubCommand("upload", command =>
     {
         command.AddCommand("report", (
                                [FromService] IUploadService uploadService,
                                [Option('d',
                                        Description = "The day which should be uploaded (format: yyyyMMdd). Default is today.")]
                                string?day,
                                [Option('k',
                                        Description = "Uploads all log, but only prints the links to logs that killed the boss.")]
                                bool killOnly,
                                [Option('f',
                                        Description =
                                            "Only uses the logs that are in the list of boss ids (in the config.json file) for the printing links.")]
                                bool filter
                                ) =>
         {
             uploadService.UploadFilesToDpsReport(day, killOnly, filter);
         })
Ejemplo n.º 3
0
 internal static CoconaApp RegisterParserCommands(this CoconaApp app)
 {
     app.AddSubCommand("parse", command =>
     {
         command.AddCommand("local",
                            ([FromService] IParserService parserService,
                             [Option('d',
                                     Description = "The day which should be parsed (format: yyyyMMdd). Default is today.")]
                             string?day,
                             [Option('r', Description = "Creates the timeline in reverse date order.")]
                             bool reverse,
                             [Option('k', Description = "Only uses the logs that killed the boss for the timeline.")]
                             bool killOnly,
                             [Option('f',
                                     Description =
                                         "Only uses the logs that are in the list of boss ids (in the config.json file) for the timeline.")]
                             bool filter
                            ) =>
         {
             parserService.ParseLogsFromDisk(day, reverse, killOnly, filter);
         })