main: print all pipeline names and ids

Instead of printing the tree_id and output_id, which are format
dependent, print all pipelines, with their name and ids.
This commit is contained in:
Christian Kellner 2021-02-10 14:53:23 +00:00
parent 931eac23c3
commit 68f5c38e61

View file

@ -139,9 +139,8 @@ def osbuild_cli():
sys.stdout.write("\n")
else:
if r["success"]:
tree_id, output_id = fmt.get_ids(manifest)
print("tree id:", tree_id)
print("output id:", output_id)
for name, pl in manifest.pipelines.items():
print(f"{name + ':': <10}\t{pl.id}")
else:
print()
print(f"{RESET}{BOLD}{RED}Failed{RESET}")