-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathOptions.cs
More file actions
33 lines (26 loc) · 1.16 KB
/
Options.cs
File metadata and controls
33 lines (26 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using CommandLine;
using CommandLine.Text;
using InEngine.Core.Queuing.Commands;
namespace InEngine.Core.Queuing
{
public class Options : IOptions
{
[VerbOption("queue:publish", HelpText = "Publish a command message to a queue.")]
public Publish Publish { get; set; }
[VerbOption("queue:consume", HelpText = "Consume one or more command messages from the queue.")]
public Consume Consume { get; set; }
[VerbOption("queue:length", HelpText = "Get the number of messages in the primary and secondary queues.")]
public Length Length { get; set; }
[VerbOption("queue:flush", HelpText = "Clear the primary or secondary queues.")]
public Flush Flush { get; set; }
[VerbOption("queue:republish", HelpText = "Republish failed messages to the queue.")]
public RepublishFailed RepublishFailed { get; set; }
[VerbOption("queue:peek", HelpText = "Peek at messages in the primary or secondary queues.")]
public Peek Peek { get; set; }
[HelpVerbOption]
public string GetUsage(string verb)
{
return HelpText.AutoBuild(this, verb);
}
}
}