mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-04-21 23:59:09 -04:00
allow running compare with just one report
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
1be9959cf5
commit
59cc34b839
@ -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,
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user