예제 #1
0
def main():
    args = get_args()
    validate_args(args)
    if args.log_level:
        log.set_level(args.log_level)

    run_command_with_args(args.command, args)
예제 #2
0
파일: main.py 프로젝트: cfengine/core
def main():
    args = get_args()
    validate_args(args)
    if args.log_level:
        log.set_level(args.log_level)

    run_command_with_args(args.command, args)
예제 #3
0
def main():
    args = get_args()
    if args.log_level:
        log.set_level(args.log_level)
    validate_args(args)

    exit_code = run_command_with_args(args.command, args)
    assert(type(exit_code) is int)
    sys.exit(exit_code)
예제 #4
0
파일: main.py 프로젝트: larsewi/core
def main():
    log.warning("You are using an outdated (deprecated) version of cf-remote")
    log.warning(
        "Please install a new version from: https://github.com/cfengine/cf-remote"
    )
    args = get_args()
    if args.log_level:
        log.set_level(args.log_level)
    validate_args(args)

    exit_code = run_command_with_args(args.command, args)
    assert (type(exit_code) is int)
    sys.exit(exit_code)