|
| 1 | +// <auto-generated> |
| 2 | +// This file was generated by ModularPipelines.OptionsGenerator. |
| 3 | +// Do not edit this file manually. |
| 4 | +// </auto-generated> |
| 5 | + |
| 6 | +using System.CodeDom.Compiler; |
| 7 | +using System.Diagnostics.CodeAnalysis; |
| 8 | +using ModularPipelines.Attributes; |
| 9 | +using ModularPipelines.Grype.Options; |
| 10 | + |
| 11 | +namespace ModularPipelines.Grype.Options; |
| 12 | + |
| 13 | +/// <summary> |
| 14 | +/// Diff two databases, showing packages with added, removed, and modified vulnerability matches |
| 15 | +/// </summary> |
| 16 | +[GeneratedCode("ModularPipelines.OptionsGenerator", "")] |
| 17 | +[ExcludeFromCodeCoverage] |
| 18 | +[CliSubCommand("db", "diff")] |
| 19 | +public record GrypeDbDiffOptions : GrypeOptions |
| 20 | +{ |
| 21 | + /// <summary> |
| 22 | + /// help for diff |
| 23 | + /// </summary> |
| 24 | + [CliFlag("--help", ShortForm = "-h")] |
| 25 | + public bool? Help { get; set; } |
| 26 | + |
| 27 | + /// <summary> |
| 28 | + /// format to display results (available=[text, json]) (default "text") |
| 29 | + /// </summary> |
| 30 | + [CliOption("--output", ShortForm = "-o", Format = OptionFormat.EqualsSeparated)] |
| 31 | + public string? Output { get; set; } |
| 32 | + |
| 33 | + /// <summary> |
| 34 | + /// only include packages |
| 35 | + /// </summary> |
| 36 | + [CliFlag("--packages")] |
| 37 | + public bool? Packages { get; set; } |
| 38 | + |
| 39 | + /// <summary> |
| 40 | + /// only include vulnerabilities |
| 41 | + /// </summary> |
| 42 | + [CliFlag("--vulns")] |
| 43 | + public bool? Vulns { get; set; } |
| 44 | + |
| 45 | + /// <summary> |
| 46 | + /// grype configuration file(s) to use |
| 47 | + /// </summary> |
| 48 | + [CliOption("--config", ShortForm = "-c", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)] |
| 49 | + public IEnumerable<string>? Config { get; set; } |
| 50 | + |
| 51 | + /// <summary> |
| 52 | + /// configuration profiles to use |
| 53 | + /// </summary> |
| 54 | + [CliOption("--profile", Format = OptionFormat.EqualsSeparated, AllowMultiple = true)] |
| 55 | + public IEnumerable<string>? Profile { get; set; } |
| 56 | + |
| 57 | + /// <summary> |
| 58 | + /// suppress all logging output |
| 59 | + /// </summary> |
| 60 | + [CliFlag("--quiet", ShortForm = "-q")] |
| 61 | + public bool? Quiet { get; set; } |
| 62 | + |
| 63 | + /// <summary> |
| 64 | + /// increase verbosity (-v = info, -vv = debug) |
| 65 | + /// </summary> |
| 66 | + [CliOption("--verbose", ShortForm = "-v", Format = OptionFormat.EqualsSeparated)] |
| 67 | + public int? Verbose { get; set; } |
| 68 | + |
| 69 | +} |
0 commit comments