def orphans_cmd(): """Find and print all orphan targets""" orphans = Target.get_json_target_data().keys() for tgt in TARGET_MAP.values(): for name in tgt.resolution_order_names: if name in orphans: orphans.remove(name) if orphans: print dump_all([orphans], default_flow_style=False) return len(orphans)
def all_targets_cmd(): """Print all errors about all parts""" print dump_all([check_hierarchy(m) for m in TARGET_MAP.values()], default_flow_style=False)