def present_to_cli()

in composer_migration/src/composer_migration/lib/comparator.py [0:0]


    def present_to_cli(self: T) -> None:
        console = Console()

        for i in self.problem_operators:
            table = Table(show_header=True, header_style="bold magenta")
            table.add_column("DAG")
            table.add_column("Operator")
            show_table = False  # if there are no problems at all, don't show the table
            if len(i) > 0:
                show_table = True
            for operator in i["operators"]:
                table.add_row(operator[0], operator[1])
            if show_table:
                table_text = Text(i["text"])
                panel_group = Group(table_text, table)
                console.print(Panel(panel_group, title=i["title"]))
            else:
                table_text = Text("No problem operators found")
                console.print(Panel(table_text, title=i["title"]))