|
1 | 1 | |
| 2 | +using System.Diagnostics.CodeAnalysis; |
2 | 3 | using System.Reflection; |
3 | 4 |
|
4 | 5 | namespace MotionExtract; |
@@ -125,6 +126,7 @@ static int Main(string[] args) |
125 | 126 | return errors > 0 ? 1 : 0; |
126 | 127 | } |
127 | 128 |
|
| 129 | + [ExcludeFromCodeCoverage] |
128 | 130 | private static ParsedArguments ParseArguments(string[] args) |
129 | 131 | { |
130 | 132 | var result = new ParsedArguments(); |
@@ -178,6 +180,7 @@ private record ParsedArguments |
178 | 180 | public bool ShowVersion { get; set; } |
179 | 181 | } |
180 | 182 |
|
| 183 | + [ExcludeFromCodeCoverage] |
181 | 184 | private static void ShowHelp() |
182 | 185 | { |
183 | 186 | var version = Assembly.GetExecutingAssembly().GetName().Version?.ToString(3) ?? "1.0.0"; |
@@ -211,33 +214,38 @@ private static void ShowHelp() |
211 | 214 | Console.WriteLine(" <filename>_video.mp4 - The video clip"); |
212 | 215 | } |
213 | 216 |
|
| 217 | + [ExcludeFromCodeCoverage] |
214 | 218 | private static void ShowVersion() |
215 | 219 | { |
216 | 220 | var version = Assembly.GetExecutingAssembly().GetName().Version?.ToString(3) ?? "1.0.0"; |
217 | 221 | Console.WriteLine($"MotionExtract v{version}"); |
218 | 222 | } |
219 | 223 |
|
| 224 | + [ExcludeFromCodeCoverage] |
220 | 225 | private static void WriteSuccess(string message) |
221 | 226 | { |
222 | 227 | Console.ForegroundColor = ConsoleColor.Green; |
223 | 228 | Console.WriteLine(message); |
224 | 229 | Console.ResetColor(); |
225 | 230 | } |
226 | 231 |
|
| 232 | + [ExcludeFromCodeCoverage] |
227 | 233 | private static void WriteWarning(string message) |
228 | 234 | { |
229 | 235 | Console.ForegroundColor = ConsoleColor.Yellow; |
230 | 236 | Console.WriteLine(message); |
231 | 237 | Console.ResetColor(); |
232 | 238 | } |
233 | 239 |
|
| 240 | + [ExcludeFromCodeCoverage] |
234 | 241 | private static void WriteError(string message) |
235 | 242 | { |
236 | 243 | Console.ForegroundColor = ConsoleColor.Red; |
237 | 244 | Console.WriteLine(message); |
238 | 245 | Console.ResetColor(); |
239 | 246 | } |
240 | 247 |
|
| 248 | + [ExcludeFromCodeCoverage] |
241 | 249 | private static void WriteInfo(string message) |
242 | 250 | { |
243 | 251 | Console.WriteLine(message); |
|
0 commit comments