def show(options):
    content = export.exports_to_file(options)
    if not content:
        utils.print_bad("No Workspace found")
        return

    data = utils.just_read(content)
    print(data)
    utils.print_block(content, tag='OUTPUT')
def reading_content(options, raw_contents):
    for element in raw_contents:
        module = element.get('module')
        reports = element.get('reports')
        # utils.print_banner(module)
        for _report in reports:

            report_path = utils.join_path(options.get(
                'WORKSPACES'), _report.get('report_path'))
            utils.print_block(report_path, tag=f'{module}:PATH')

            if _report.get('report_type') != 'html':
                # do reading file here
                utils.print_block(report_path, tag=f'{module}:READ')
                content = utils.just_read(report_path)
                print(content)
Пример #3
0
 def banner(self):
     utils.print_block("Skeleton", tag='START')