You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Typewriter/Options.cs
+25Lines changed: 25 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,25 @@ public enum VerbosityLevel
10
10
Trace
11
11
}
12
12
13
+
/// <summary>
14
+
/// Specifies how Typewriter will processes the input metadata and what type of outputs it produces.
15
+
/// </summary>
16
+
publicenumGenerationMode
17
+
{
18
+
/// <summary>
19
+
/// (default) Produces the output code files by cleaning the input metadata, parsing the docs, and adding annotations before generating the output files.
20
+
/// </summary>
21
+
Full,
22
+
/// <summary>
23
+
/// Produces an output metadata file by cleaning metadata, documentation parsing, and adding doc annotations.
24
+
/// </summary>
25
+
Metadata,
26
+
/// <summary>
27
+
/// Uses the input metadata and only generates code files for the target platform. It bypasses the cleaning, doc parsing, and adding doc annotations.
28
+
/// </summary>
29
+
Files
30
+
}
31
+
13
32
classOptions
14
33
{
15
34
[Option('l',"language",Default="CSharp",HelpText="The target language for the generated code files. The values can be: Android, Java, ObjC, CSharp, PHP, Python, TypeScript, or GraphEndpointList")]
@@ -26,5 +45,11 @@ class Options
26
45
27
46
[Option('d',"docs",Default=".",HelpText="Path to the root of the documentation repo folder")]
28
47
publicstringDocsRoot{get;set;}
48
+
49
+
[Option('g',"generationmode",Default=GenerationMode.Full,HelpText="Specifies the generation mode. The values can be: Full, Metadata, or Files. Full generation mode produces "+
50
+
"the output code files by cleaning the input metadata, parsing the documentation, and adding annotations before generating the output files. Metadata generation mode"+
51
+
"produces an output metadata file by cleaning metadata, documentation parsing, and adding documentation annotations. Files generation mode produces code files from"+
52
+
"an input metadata and bypasses the cleaning, documentation parsing, and adding documentation annotations.")]
0 commit comments