Skip to content

Commit

Permalink
targets: show: Print LmP version if available
Browse files Browse the repository at this point in the history
Signed-off-by: Mike <[email protected]>
  • Loading branch information
mike-sul committed Jul 25, 2023
1 parent 79aedc2 commit 8e7ff62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/foundries.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 3 additions & 0 deletions subcommands/targets/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8e7ff62

Please sign in to comment.