Exemple #1
0
def run():
    """
    Parse the command line options and run the correct command.
    """

    options = command_line_options()
    log.init_logging(getattr(logging, options.level))

    if options.command == 'build':
        build.main(options)
    elif options.command == 'devel':
        devel.main(options)
    elif options.command == 'check':
        check.main(options)
    elif options.command == 'update':
        update.main(options)

    critical = log.MooseDocsFormatter.COUNTS['CRITICAL'].value
    errors = log.MooseDocsFormatter.COUNTS['ERROR'].value
    warnings = log.MooseDocsFormatter.COUNTS['WARNING'].value

    print 'CRITICAL:{} ERROR:{} WARNING:{}'.format(critical, errors, warnings)
    if critical or errors:
        return 1
    return 0
Exemple #2
0
def run():
    """
    Parse the command line options and run the correct command.
    """

    options = command_line_options()
    log.init_logging(getattr(logging, options.level))

    if options.command == 'build':
        errno = build.main(options)
    elif options.command == 'check':
        errno = check.main(options)
    elif options.command == 'verify':
        errno = verify.main(options)

    critical = log.MooseDocsFormatter.COUNTS['CRITICAL'].value
    errors = log.MooseDocsFormatter.COUNTS['ERROR'].value
    warnings = log.MooseDocsFormatter.COUNTS['WARNING'].value

    print 'CRITICAL:{} ERROR:{} WARNING:{}'.format(critical, errors, warnings)
    if critical or errors or (errno != 0):
        return 1
    return 0
Exemple #3
0
def run():
    """
    Parse the command line options and run the correct command.
    """

    options = command_line_options()
    init_large_media()
    log.init_logging(getattr(logging, options.level))

    if options.command == 'build':
        errno = build.main(options)
    elif options.command == 'check':
        errno = check.main(options)
    elif options.command == 'verify':
        errno = verify.main(options)

    critical = log.MooseDocsFormatter.COUNTS['CRITICAL'].value
    errors = log.MooseDocsFormatter.COUNTS['ERROR'].value
    warnings = log.MooseDocsFormatter.COUNTS['WARNING'].value

    print 'CRITICAL:{} ERROR:{} WARNING:{}'.format(critical, errors, warnings)
    if critical or errors or (errno != 0):
        return 1
    return 0