From 8e7ff62f9d35b23311dca7bae3fbd1d9bd55582f Mon Sep 17 00:00:00 2001 From: Mike Sul Date: Mon, 24 Jul 2023 12:29:32 +0200 Subject: [PATCH] targets: show: Print LmP version if available Signed-off-by: Mike --- client/foundries.go | 1 + subcommands/targets/show.go | 3 +++ 2 files changed, 4 insertions(+) diff --git a/client/foundries.go b/client/foundries.go index 0e93a46d..6b871e32 100644 --- a/client/foundries.go +++ b/client/foundries.go @@ -291,6 +291,7 @@ type TufCustom struct { OrigUri string `json:"origUri,omitempty"` CreatedAt string `json:"createdAt,omitempty"` UpdatedAt string `json:"updatedAt,omitempty"` + LmpVer string `json:"lmp-ver,omitempty"` } type Target struct { diff --git a/subcommands/targets/show.go b/subcommands/targets/show.go index 62332d0a..11422161 100644 --- a/subcommands/targets/show.go +++ b/subcommands/targets/show.go @@ -127,6 +127,9 @@ func doShow(cmd *cobra.Command, args []string) { parts := strings.Split(target.OrigUri, "/") fmt.Printf("\tOrigin Target: %s\n", parts[len(parts)-1]) } + if len(target.LmpVer) > 0 { + fmt.Printf("\tLmP Version: %s\n", target.LmpVer) + } fmt.Println() fmt.Println("\tSource:") if len(target.LmpManifestSha) > 0 {