add --all-releases mode to list-deliverables
Add a verbose output mode that shows information about all of the releases for a deliverable, not just the latest. Change-Id: Ic7bcf135581371f286b2dd2c0d85145fa801e52c Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
23a856cb05
commit
29e1d06b20
@ -36,6 +36,12 @@ def main():
|
||||
default=False,
|
||||
help='show the repository names not deliverable names',
|
||||
)
|
||||
output_mode.add_argument(
|
||||
'-a', '--all-releases',
|
||||
action='store_true',
|
||||
default=False,
|
||||
help='show all of the releases for each deliverable',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--group-by',
|
||||
dest='group_key',
|
||||
@ -222,6 +228,16 @@ def main():
|
||||
'type': deliv.type,
|
||||
'model': deliv.model,
|
||||
})
|
||||
elif args.all_releases:
|
||||
for r in deliv.releases:
|
||||
print(verbose_template.format(
|
||||
name=deliv.name,
|
||||
latest_release=r.get('version', ''),
|
||||
team=deliv.team,
|
||||
type=deliv.type,
|
||||
model=deliv.model,
|
||||
tags=tag_str,
|
||||
))
|
||||
elif args.verbose:
|
||||
print(verbose_template.format(
|
||||
name=deliv.name,
|
||||
|
Loading…
Reference in New Issue
Block a user