Add get of log group

This commit is contained in:
Gardient
2016-09-16 22:58:49 +03:00
parent ce84aa0089
commit f343dc6b48
5 changed files with 135 additions and 3 deletions

View File

@@ -0,0 +1,29 @@
using CommandLine;
using CommandLine.Text;
namespace CloudWatchLogDownloader.Models
{
internal class CommandOptions
{
[Option('g', "logGroup", HelpText = "The log group you want to select the stream from, can end with '*' in which case the option to choose from all groups starting with this will be given")]
[ValueOption(0)]
public string LogGroup { get; set; }
[Option('s', "logStream", HelpText = "The log stream you want to save, can end with '*' in which case the option to choose from all groups starting with this will be given")]
[ValueOption(1)]
public string LogStream { get; set; }
[Option('o', "outputFile", HelpText = "The file to output the logs to")]
[ValueOption(2)]
public string OutputFilePath { get; set; }
[ParserState]
public IParserState ParserState { get; set; }
[HelpOption]
public string GetUsage()
{
return HelpText.AutoBuild(this, (current) => HelpText.DefaultParsingErrorsHandler(this, current));
}
}
}