def run(self):
        # TODO: add a verbose mode, which shows alters as having been run or not

        (options, _) = self.parser.parse_args()

        list_reverse = options.listReverse

        list_tail = ChainUtil.build_chain()

        self.__set_is_applied_flag(list_tail)

        result = []

        if list_tail is None:
            sys.stdout.write("No alters found\n")
        else:
            normal_str = []
            temp_node = list_tail
            while temp_node is not None:
                result.append(temp_node.id)
                normal_str.append(temp_node.__str__(False))
                temp_node = temp_node.backref
            if not list_reverse:
                normal_str.reverse()
                result.reverse()
            sys.stdout.write("\n".join(normal_str) + "\n")

        return result
Print the current build chain in the console.
dataset/ETHPy150Open appnexus/schema-tool/schematool/command/list.py/ListCommand.run