Esempio n. 1
0
def main(argv=sys.argv):
    print(frontend.cli_process(argv[1:], 'dotmpe.du.builder.dotmpe_v5'))
Esempio n. 2
0
if source_format == 'mime':
    parser = comp.get_parser_class('rst')(rfc2822=1)
else:
    parser = comp.get_parser_class(parser_name)()

# Main

log = util.get_log(None, fout=False, stdout=True)

if action == 'proc':
    log.info("Starting Du processor: "+tag)
    assert target_format == 'pseudoxml'
    # TODO: use source_format
    #frontend.cli_process(
    #        sys.argv[1:], builder_name=module_name)
    frontend.cli_process(sys.argv[1:], None, 'dotmpe.du.builder.'+tag)
    #frontend.cli_process(
    #        sys.argv[1:], builder_name=module_name)

elif action == 'pub':
    log.info("Starting Du publish")
    frontend.cli_render(
            sys.argv[1:], builder_name=module_name)

elif action == 'run':
    log.info("Starting Du command")
    frontend.cli_run(
            sys.argv[1:], builder_name=module_name)

elif action == 'dupub':
    log.info("Starting standard publisher")