doctor enhancements, setup, enhancements, ui functionality and design consolidation and , test projects fixes , product advisory attestation/rekor and delta verfications enhancements
This commit is contained in:
@@ -131,6 +131,21 @@ internal static class DoctorCommandGroup
|
||||
Description = "Exit with non-zero code on warnings (default: only fail on errors)"
|
||||
};
|
||||
|
||||
var watchOption = new Option<bool>("--watch", new[] { "-w" })
|
||||
{
|
||||
Description = "Run in continuous monitoring mode"
|
||||
};
|
||||
|
||||
var intervalOption = new Option<int?>("--interval")
|
||||
{
|
||||
Description = "Interval in seconds between checks in watch mode (default: 60)"
|
||||
};
|
||||
|
||||
var envOption = new Option<string?>("--env", new[] { "-e" })
|
||||
{
|
||||
Description = "Target environment for checks (e.g., dev, staging, prod)"
|
||||
};
|
||||
|
||||
return new DoctorRunCommandOptions(
|
||||
formatOption,
|
||||
modeOption,
|
||||
@@ -140,7 +155,10 @@ internal static class DoctorCommandGroup
|
||||
parallelOption,
|
||||
timeoutOption,
|
||||
outputOption,
|
||||
failOnWarnOption);
|
||||
failOnWarnOption,
|
||||
watchOption,
|
||||
intervalOption,
|
||||
envOption);
|
||||
}
|
||||
|
||||
private static void AddRunOptions(
|
||||
@@ -157,6 +175,9 @@ internal static class DoctorCommandGroup
|
||||
command.Add(options.TimeoutOption);
|
||||
command.Add(options.OutputOption);
|
||||
command.Add(options.FailOnWarnOption);
|
||||
command.Add(options.WatchOption);
|
||||
command.Add(options.IntervalOption);
|
||||
command.Add(options.EnvOption);
|
||||
command.Add(verboseOption);
|
||||
}
|
||||
|
||||
@@ -1123,7 +1144,10 @@ internal static class DoctorCommandGroup
|
||||
Option<int?> ParallelOption,
|
||||
Option<int?> TimeoutOption,
|
||||
Option<string?> OutputOption,
|
||||
Option<bool> FailOnWarnOption);
|
||||
Option<bool> FailOnWarnOption,
|
||||
Option<bool> WatchOption,
|
||||
Option<int?> IntervalOption,
|
||||
Option<string?> EnvOption);
|
||||
|
||||
private sealed record DoctorFixStep(
|
||||
string CheckId,
|
||||
|
||||
Reference in New Issue
Block a user