:py:mod:`buildtest.utils.print` =============================== .. py:module:: buildtest.utils.print Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: buildtest.utils.print.print_file_content buildtest.utils.print.print_content .. py:function:: print_file_content(file_path, title, lexer, theme, show_last_lines=None) This method will print the content of a file using Rich Syntax. :param file_path: Specify file to print the content of. :type file_path: str :param title: The title to use when printing the content. :type title: str :param lexer: The lexer to use when printing the content. :type lexer: str :param theme: The theme to use when printing the content. :type theme: str :param show_last_lines: Show last N lines of file content. If set to None, will print entire file content. :type show_last_lines: int .. py:function:: print_content(content, title, lexer, theme, show_last_lines=None) This method will print the content using Rich Syntax. :param content: Specify file to print the content of. :type content: str :param title: The title to use when printing the content. :type title: str :param lexer: The lexer to use when printing the content. :type lexer: str :param theme: The theme to use when printing the content. :type theme: str :param show_last_lines: Show last N lines of file content. If set to None, will print entire file content. :type show_last_lines: int