def main(): """Entry point to this script.""" # Parse all CLI arguments. args = cli_arguments() verbose = args.verbose input_file = args.input # validate the provided Parquet file report = validate_parquet_file(schema, input_file, verbose) # print report from schema validation print_report(report, args.nocolors)
def main(): """Entry point to this script.""" # Parse all CLI arguments. args = cli_arguments() verbose = args.verbose multiple = args.multiple input_file = args.input if multiple: # process multiple messages stored in one input file report = validate_multiple_messages(schema, input_file, verbose) else: # process single message stored in one input file report = validate_single_message(schema, input_file, verbose) # print report from schema validation print_report(report, args.nocolors)