Beispiel #1
0
def clean(args):
    c = fetch_config(args)

    for fn in include_files_unused(conf=c):
        fn = os.path.join(c.paths.source, fn[1:])
        if os.path.exists(fn):
            os.remove(fn)
            logger.info("removed {0}, which was an unused include file.".format(fn))
        else:
            logger.error('{0} does not exist'.format(fn))
Beispiel #2
0
def clean(args):
    c = fetch_config(args)

    for fn in include_files_unused(conf=c):
        fn = os.path.join(c.paths.source, fn[1:])
        if os.path.exists(fn):
            os.remove(fn)
            logger.info("removed {0}, which was an unused include file.".format(fn))
        else:
            logger.error('{0} does not exist'.format(fn))
Beispiel #3
0
def unused(args):
    c = fetch_config(args)

    render_for_console(include_files_unused(conf=c))
Beispiel #4
0
def unused(args):
    c = fetch_config(args)

    render_for_console(include_files_unused(conf=c))