11using DescribeCompiler ;
2+ using DescribeCompiler . Compiler ;
23using System ;
34using System . Collections . Generic ;
45using System . Linq ;
@@ -9,6 +10,13 @@ namespace DescribeCompilerCLI
910{
1011 internal class Datnik
1112 {
13+ /// <summary>
14+ /// The output directory for the ext and extone commands
15+ /// </summary>
16+ public static string extOutputDir ;
17+
18+
19+
1220 /// <summary>
1321 /// The input file or folder
1422 /// </summary>
@@ -29,40 +37,96 @@ internal class Datnik
2937 /// </summary>
3038 public static bool isOutputDir ;
3139
40+ /// <summary>
41+ /// When parsing a folder, weather to parse files in top directory only
42+ /// or parse files in child directories as well
43+ /// </summary>
44+ public static bool topOnly ;
45+
46+ /// <summary>
47+ /// Weather to omit files that are not Describe source files (".DS")
48+ /// </summary>
49+ public static bool dsOnly ;
50+
51+
52+
3253 /// <summary>
3354 /// The verbosity for the parser
3455 /// </summary>
3556 public static LogVerbosity verbosity ;
3657
3758 /// <summary>
38- /// The template for the parser
59+ /// Weather the compiler should stop after encountering an error
60+ /// or add the file to the list of failed files and continue with
61+ /// the next one
62+ /// </summary>
63+ public static bool requireSuccess ;
64+
65+
66+
67+ /// <summary>
68+ /// The name of the template for the parser
3969 /// </summary>
4070 public static string templateName ;
4171
72+ /// <summary>
73+ /// The path of the template for the parser
74+ /// </summary>
75+ public static string templatePath ;
4276
77+ /// <summary>
78+ /// Weather the template set is internal or external
79+ /// </summary>
80+ public static bool isInternal ;
81+
82+
83+
84+ /// <summary>
85+ /// Path to an external log file
86+ /// </summary>
87+ public static string logFilePath ;
88+
89+ /// <summary>
90+ /// Weather to output logs to an external file
91+ /// </summary>
92+ public static bool logToFile ;
4393
44- ////new
45- ///// <summary>
46- ///// Wether the compiler should stop after encountering an error
47- ///// or add the file to the list of failed files and continue with
48- ///// the next one.
49- ///// </summary>
50- //public static bool requireSuccess;
94+
95+
96+ /// <summary>
97+ /// Weather to and how to use artifacts
98+ /// </summary>
99+ public static ArtifactMode artifactMode ;
100+
101+ /// <summary>
102+ /// Path to artifacts folder
103+ /// </summary>
104+ public static string artifactsFolderPath ;
51105
52106
53107 static Datnik ( )
54108 {
55- input = "" ;
56- output = "" ;
109+ extOutputDir = null ;
57110
111+ input = null ;
112+ output = null ;
58113 isInputDir = false ;
59114 isOutputDir = false ;
115+ topOnly = false ;
116+
117+ templateName = "HTML_PARACORD" ;
118+ templatePath = null ;
119+ isInternal = true ;
120+
121+ logFilePath = null ;
122+ logToFile = false ;
60123
124+ dsOnly = true ;
61125 verbosity = LogVerbosity . Low ;
62- templateName = null ;
126+ requireSuccess = true ;
63127
64- //new
65- //requireSuccess = false ;
128+ artifactMode = ArtifactMode . No ;
129+ artifactsFolderPath = null ;
66130 }
67131 }
68132}
0 commit comments