-
Notifications
You must be signed in to change notification settings - Fork 53
/
Options.cs
43 lines (39 loc) · 1.66 KB
/
Options.cs
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
34
35
36
37
38
39
40
41
42
43
using Amazon.AwsToolkit.Telemetry.Events.Generator.Core;
using CommandLine;
using System.Collections.Generic;
namespace Amazon.AwsToolkit.Telemetry.Events.Generator
{
public class Options
{
[Option(
Default = Constants.DefaultEventsNamespace,
Required = false,
HelpText = "Namespace to produce generated code in. When generating code for supplemental " +
"telemetry definitions, this can help 'fit' the generated code into a host codebase"
)]
public string Namespace { get; set; }
[Option(
shortName:'s',
Required = false,
HelpText = "Optional, space separated. Supplemental telemetry definition files. " +
"When provided, code is not generated for common telemetry definitions. " +
"This is intended for toolkit-specific telemetry definitions that live " +
"in the host repo (rather than the toolkit common repo). Generated code " +
"is expected to have access to the common Telemetry Events package and namespace."
)]
public IEnumerable<string> SupplementalDefinitions { get; set; }
[Option(
shortName:'o',
Required = false,
HelpText = "Location to write generated code to. Defaults to current folder."
)]
public string OutputFolder { get; set; }
[Option(
shortName: 'f',
Default = "GeneratedCode.cs",
Required = false,
HelpText = "Name of file to produce."
)]
public string OutputFilename { get; set; }
}
}