allow running compare with just one report

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2024-07-10 09:34:36 +02:00
parent 1be9959cf5
commit 59cc34b839
No known key found for this signature in database
GPG Key ID: 7DD3015F3DDE4B9C

View File

@ -21,11 +21,11 @@ import (
func newCompareCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "compare VARIANT FILE FILE [FILE...]",
Use: "compare VARIANT FILE [FILE...]",
Short: "Returns the minimum version of all given attestation reports.",
Long: "Compare two or more attestation reports and return the report with the minimum version of all given attestation reports.",
Long: "Compare a list of attestation reports and return the report with the minimum version.",
Example: "cli compare azure-sev-snp report1.json report2.json",
Args: cobra.MatchAll(cobra.MinimumNArgs(3), arg0isAttestationVariant()),
Args: cobra.MatchAll(cobra.MinimumNArgs(2), arg0isAttestationVariant()),
RunE: runCompare,
}