feat(cli): add sort-by flag to sub commands (#1768)

Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
This commit is contained in:
LaurentiuNiculae
2023-09-14 20:51:17 +03:00
committed by GitHub
parent c210e3f377
commit aae8b7b4e3
23 changed files with 714 additions and 98 deletions
+1
View File
@@ -14,6 +14,7 @@ func NewCVECommand(searchService SearchService) *cobra.Command {
Use: "cve [command]",
Short: "Lookup CVEs in images hosted on the zot registry",
Long: `List CVEs (Common Vulnerabilities and Exposures) of images hosted on the zot registry`,
RunE: ShowSuggestionsIfUnknownCommand,
}
cvesCmd.SetUsageTemplate(cvesCmd.UsageTemplate() + usageFooter)