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)
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)
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)