From 02478f2e48302441f86f3eeaba80119d6bc7ccf1 Mon Sep 17 00:00:00 2001 From: Alex Schofield Date: Fri, 14 Feb 2025 12:59:30 +0000 Subject: update cli.py to properly read from local csv files --- cli.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cli.py') diff --git a/cli.py b/cli.py index 0bbaf89..bb12421 100644 --- a/cli.py +++ b/cli.py @@ -1,5 +1,5 @@ import argparse -from obfuscator.csv_reader import read_local, read_s3 +from obfuscator.csv_reader import CSVReader def main(): parser = argparse.ArgumentParser(description="gdpr-obfuscator") @@ -10,7 +10,9 @@ def main(): args = parser.parse_args() if args.local and not args.s3: - print(read(args.local)) + reader = CSVReader(args.local) + data = reader.read_local() + print(data) else: pass -- cgit v1.2.3