-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
203 additions
and
102 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
IsIdentifiable/Options/IsIdentifiableReportValidatorOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
using CommandLine; | ||
using IsIdentifiable.Reporting.Reports; | ||
using System; | ||
|
||
namespace IsIdentifiable.Options; | ||
|
||
/// <summary> | ||
/// CLI options for the validator | ||
/// </summary> | ||
[Verb("validate", HelpText = "Validate a FailureStoreReport")] | ||
public class IsIdentifiableReportValidatorOptions | ||
{ | ||
/// <summary> | ||
/// The CSV list of failures to process. Must be in the format of a <see cref="FailureStoreReport"/> | ||
/// </summary> | ||
[Option('f', "file", | ||
Required = true, | ||
HelpText = "Pre load an existing failures file" | ||
)] | ||
public string FailuresCsv { get; set; } | ||
|
||
/// <summary> | ||
/// Sets UseSystemConsole to true for Terminal.gui (i.e. uses the NetDriver which is based on System.Console) | ||
/// </summary> | ||
[Option("usc", HelpText = "Sets UseSystemConsole to true for Terminal.gui (i.e. uses the NetDriver which is based on System.Console)")] | ||
public bool UseSystemConsole { get; internal set; } | ||
|
||
/// <summary> | ||
/// Sets the user interface to use a specific color palette yaml file | ||
/// </summary> | ||
[Option("theme", HelpText = "Sets the user interface to use a specific color palette yaml file")] | ||
public string Theme { get; set; } | ||
|
||
|
||
/// <summary> | ||
/// Populates values in this instance where no value yet exists and there is a value in <paramref name="globalOpts"/> | ||
/// to inherit. | ||
/// </summary> | ||
/// <param name="globalOpts"></param> | ||
public virtual void InheritValuesFrom(IsIdentifiableReviewerOptions globalOpts) | ||
{ | ||
ArgumentNullException.ThrowIfNull(globalOpts); | ||
|
||
if (Theme == null && !string.IsNullOrWhiteSpace(globalOpts.Theme)) | ||
Theme = globalOpts.Theme; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters