Skip to content
Snippets Groups Projects
Commit 98a3ba50 authored by Filippo Cremonese's avatar Filippo Cremonese
Browse files

Add --hashes option to components command

parent a1b981c6
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ def install_subcommand(sub_argparser):
cmd_parser.add_argument("--installed", action="store_true", help="Only print installed components")
cmd_parser.add_argument("--not-installed", action="store_true", help="Only print not installed components")
cmd_parser.add_argument("--deps", action="store_true", help="Print dependencies")
cmd_parser.add_argument("--hashes", action="store_true", help="Show hashes")
def handle_components(args, config: Configuration):
......@@ -48,6 +49,10 @@ def handle_components(args, config: Configuration):
if dependencies:
infos.append(f"install deps: {' '.join(d.name_for_components for d in dependencies)}")
if args.hashes:
infos.append(f"hash: {build.self_hash}")
infos.append(f"recursive hash: {build.recursive_hash}")
infos_s = " ".join(f"[{i}]" for i in infos)
s = f" Build {build_name} {infos_s}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment